Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Command ¶
type Command struct {
Name string
Handler CommandHandler
Description string
Aliases []string
Secondary SecondarySuggester
ExtraHelp ExtraHelpText
}
Command maps commands to handlers
Required: Name, Handler, Description Optional: Aliases, SecondarySuggester, ExtraHelp
type CommandHandler ¶
CommandHandler defines the function type for handling commands
type ExtraHelpText ¶
ExtraHelpText defines a function for commands to produce more help text
type HelpFormatHints ¶
type HelpFormatHints struct {
// contains filtered or unexported fields
}
type SecondarySuggester ¶
SecondarySuggester defines a function for replacing suggestions for subcommands
Click to show internal directories.
Click to hide internal directories.