Documentation
¶
Index ¶
- type Command
- type Runner
- func (r *Runner) Alias(from string, to ...string)
- func (r Runner) Command(name string) *Command
- func (r *Runner) DefaultCommand() *Command
- func (r *Runner) Execute()
- func (r *Runner) HelpCommand() *Command
- func (r *Runner) Register(c *Command)
- func (r *Runner) RegisterDefault(c *Command)
- func (r *Runner) RegisterHelp(c *Command)
- func (r *Runner) SortedCommands() []Command
- type Runtime
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Runner ¶
type Runner struct {
Commands map[string]*Command
Aliases map[string]string
// contains filtered or unexported fields
}
func (*Runner) DefaultCommand ¶
func (*Runner) HelpCommand ¶
func (*Runner) RegisterDefault ¶
func (*Runner) RegisterHelp ¶
func (*Runner) SortedCommands ¶
Click to show internal directories.
Click to hide internal directories.