Documentation
¶
Index ¶
- func EvalString(ctx context.Context, cmd Command, expr string) error
- func Exec(ctx context.Context, cmd Command, argv []string) error
- func RunCommand(expr string) int
- func RunREPL() int
- func RunScript(script io.Reader) int
- func RunScriptFile(filename string) int
- type Command
- type Internal
- type InternalCmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunCommand ¶
func RunScriptFile ¶
Types ¶
type Internal ¶
type Internal struct {
Cmds *sync.Map
Alias *sync.Map
MutVar *sync.Map
Var *sync.Map
GlobalMutVar *sync.Map
GlobalVar *sync.Map
Args *sync.Map
Return *sync.Map
}
func NewInternal ¶
func NewInternal() Internal
func (Internal) GetAliasAll ¶
func (Internal) GetCmdsAll ¶
func (Internal) SetInternalCmd ¶
func (in Internal) SetInternalCmd(name string, cmd InternalCmd)
Click to show internal directories.
Click to hide internal directories.