Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdderMultipleCommands ¶
AdderMultipleCommands adds cmd commands to the other command.
type CommandRouter ¶
type CommandRouter struct {
// contains filtered or unexported fields
}
CommandRouter is the main commands router.
func NewCommandRouter ¶
func NewCommandRouter(log ErrorLogger, api Runner) CommandRouter
NewCommandRouter creates a new CommandRouter.
func (*CommandRouter) RegisterApp ¶
func (r *CommandRouter) RegisterApp(a CommandsAdder)
RegisterApp register the applications.
type CommandsAdder ¶
type CommandsAdder interface {
AddCommands(cmd interface{ AdderMultipleCommands })
}
CommandsAdder add the app commands
type ErrorLogger ¶
type ErrorLogger interface {
Error(args ...interface{})
}
ErrorLogger logs errors.
Click to show internal directories.
Click to hide internal directories.