Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
// Name is the name of the command, if empty,
// fallback to trying first word of usage, then short, then long
Name string
// Usage is the single line usage information
Usage string
// Short is a short description of the command used when help is called
Short string
// Long is the long description of the command used when help [command] is called
Long string
// Flags are the command line flags for the command
// The root command will not have it's flags parsed, flags are reserved
// for subcommands
Flags flag.FlagSet
// Run runs the command
Run func(*Command, []string)
// contains filtered or unexported fields
}
Command is a command to be run from the command line
func (*Command) AddCommand ¶
AddCommand ands a subcommand to the command
Click to show internal directories.
Click to hide internal directories.