Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { Registrable Handler Executable }
Command is an instance of executable CLI invocation
type Executable ¶
Executable is an interface for an executable action
type Register ¶
type Register struct {
// contains filtered or unexported fields
}
Commands register
func NewRegister ¶
func NewRegister() *Register
func (*Register) GetCommands ¶
Returns all registered categories and commands as `cli.Command` tree
func (*Register) RegisterCategory ¶
Adds a new category to the Register
func (*Register) RegisterCommand ¶
Adds a new command to the Register
type Registrable ¶
Registrable is an entity that can be registered in commands graph / tree
Click to show internal directories.
Click to hide internal directories.