Documentation
¶
Overview ¶
Package cmd is the package that contains all of the command handling logic.
Package cmd is the package that contains all of the command handling logic.
Package cmd is the package that contains all of the command handling logic.
Package cmd is the package that contains all of the command handling logic.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { api.CreateCommandData // Subs is the map of subcommands. Subs map[string]*Command // HandlerFunc is the command handler function. HandlerFunc func(cmd *Command, s *state.State) cmdroute.CommandHandlerFunc // AutocompleterFunc is the command autocompleter function. AutocompleterFunc func(cmd *Command, s *state.State) cmdroute.AutocompleterFunc // contains filtered or unexported fields }
Command is the struct that contains all of the information about a command.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager is the manager for commands.
func NewManager ¶
func NewManager(l logger.Logger, cc *cachecontainer.CacheContainer, hc *http.Client, mp *message.Printer) *Manager
NewManager creates a new command manager.
func (*Manager) RegisterCommand ¶
RegisterCommand registers a command.
func (*Manager) RegisterCommands ¶
RegisterCommands registers multiple commands.
Click to show internal directories.
Click to hide internal directories.