Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Default ¶
type Default struct { NameStr string ShortHelpStr string LongHelpStr string ExecuteFunc func([]string) bool SubCommandList []cli.Command }
Default is the default implementation of cli.Command.
It simply returns struct fields to satisfy the interface.
func (*Default) SubCommands ¶
func (cmd *Default) SubCommands() []cli.Command
type Root ¶
type Root struct { Help string SubCommandList []cli.Command }
Root implements cli.Command.
It represents the command to your CLI with no arguments and has only a help string and a list of sub commands.
func (*Root) Execute ¶
The root command isn't run because a call to the CLI with no arguments should print out the Help string
func (*Root) SubCommands ¶
func (cmd *Root) SubCommands() []cli.Command
Click to show internal directories.
Click to hide internal directories.