Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Commands = map[string]Command{}
Functions ¶
func InvokeCommand ¶
func RegisterCommand ¶
func RegisterCommand(command Command)
func RegisterCommands ¶
func RegisterCommands(commands ...Command)
Types ¶
type Command ¶
type Command struct {
Name, Description string
Aliases []string
Handle CommandHandler
}
type CommandHandler ¶
Click to show internal directories.
Click to hide internal directories.