Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindCommand ¶ added in v1.8.0
FindCommand resolves a command path against the provided root command.
Types ¶
type Command ¶
type Command struct {
Name string `json:"name"`
Description string `json:"description"`
Usage string `json:"usage"`
Aliases []string `json:"aliases,omitempty"`
Examples string `json:"examples,omitempty"`
Slug string `json:"slug,omitempty"`
RunInWebCLI bool `json:"runInWebCLI,omitempty"`
CommandType string `json:"commandType"`
Annotations map[string]string `json:"annotations,omitempty"`
Flags map[string][]Flag `json:"flags,omitempty"`
SubCommands []Command `json:"subCommands,omitempty"`
}
func DescribeCommand ¶ added in v1.8.0
DescribeCommand returns a machine-readable description of a command.
func (Command) ExamplesList ¶ added in v1.4.2
Click to show internal directories.
Click to hide internal directories.