Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCommands ¶
AddCommands adds all subcommands to root
Types ¶
type CommandInfo ¶
type CommandInfo struct {
Name string `json:"name"`
Use string `json:"use"`
Short string `json:"short"`
Long string `json:"long"`
Subcommands []CommandInfo `json:"subcommands,omitempty"`
Flags []FlagInfo `json:"flags,omitempty"`
Examples string `json:"examples,omitempty"`
}
CommandInfo represents metadata about a command for introspection
type GlobalFlags ¶
type GlobalFlags struct {
APIKey string
OutputFormat string
OutputFile string
Verbose bool
Quiet bool
DryRun bool
}
GlobalFlags holds all global flag values
func GetGlobalFlags ¶
func GetGlobalFlags() GlobalFlags
GetGlobalFlags returns the current global flag values
Click to show internal directories.
Click to hide internal directories.