Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
QUIT_CMD = [3]string{"quit", "q", "exit"}
)
Functions ¶
This section is empty.
Types ¶
type CommandInterpreter ¶
type CommandInterpreter struct {
// contains filtered or unexported fields
}
func NewCommandInterpreter ¶
func NewCommandInterpreter() *CommandInterpreter
func (*CommandInterpreter) AddCommand ¶
func (c *CommandInterpreter) AddCommand(cmd ICommand)
func (*CommandInterpreter) Execute ¶
func (c *CommandInterpreter) Execute(rawCmdExp string) string
func (*CommandInterpreter) IsQuitCmd ¶
func (c *CommandInterpreter) IsQuitCmd(rawCmdExp string) bool
Click to show internal directories.
Click to hide internal directories.