Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { // The name of the command. Name string // Aliases of the name. // e.g. version -> v Aliases []string // A summary explaining the function of the command. Summary string // A list of sub commands. Commands []Command // A list of arguments. Args Arguments // Options of the command. // e.g. --all, etc. Options []Option // The method corresponding with a list of arguments. Method func(args []string, options map[string]string) error }
A command with either sub-commands or a list of arguments.
Click to show internal directories.
Click to hide internal directories.