Documentation ¶
Index ¶
- type Engine
- func (e *Engine) AddCommand(name string, help string, handler Handler, userLevel int) error
- func (e *Engine) Exec(ctx interface{}, userLevel int, args []string) error
- func (e *Engine) ExecString(ctx interface{}, userLevel int, commandString string) error
- func (e *Engine) RemoveCommand(name string) error
- type Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine is the core interface to the command interpreter.
func (*Engine) AddCommand ¶
AddCommand adds a command to the engine.
func (*Engine) ExecString ¶
ExecString parses the commandString and executes the command.
func (*Engine) RemoveCommand ¶
RemoveCommand removes a command from the engine.
Click to show internal directories.
Click to hide internal directories.