Documentation
¶
Index ¶
- Constants
- func NewCommands() *cobra.Command
- func NewHelp(exitError func(int, string) error) *cobra.Command
- func PrepareHelp(root *cobra.Command, args []string, ...)
- func SetDiscoveryTerms(command *cobra.Command, terms string)
- func UsageRecoveryHint(root *cobra.Command, args []string) string
- func VisitPublic(root *cobra.Command, visit func(*cobra.Command))
- type Catalog
- type Entry
Constants ¶
View Source
const DiscoveryTermsAnnotation = "wb.dev/discovery-terms"
Variables ¶
This section is empty.
Functions ¶
func NewCommands ¶
func PrepareHelp ¶
func SetDiscoveryTerms ¶
Types ¶
type Entry ¶
type Entry struct {
Path string `json:"path"`
Summary string `json:"summary"`
Aliases []string `json:"aliases,omitempty"`
Examples []string `json:"examples,omitempty"`
DiscoveryTerms []string `json:"discovery_terms,omitempty"`
Group string `json:"group,omitempty"`
Runnable bool `json:"runnable"`
HasSubcommands bool `json:"has_subcommands"`
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.