Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MainHelpTemplate ¶
func MainHelpTemplate() string
func MainUsageTemplate ¶
func MainUsageTemplate() string
func OptionsHelpTemplate ¶
func OptionsHelpTemplate() string
func OptionsUsageTemplate ¶
func OptionsUsageTemplate() string
func UseOptionsTemplates ¶ added in v0.4.2
Types ¶
type CommandGroup ¶ added in v0.6.1
type CommandGroups ¶ added in v0.6.1
type CommandGroups []CommandGroup
func AddAdditionalCommands ¶ added in v0.6.1
func AddAdditionalCommands(g CommandGroups, message string, cmds []*cobra.Command) CommandGroups
func (CommandGroups) Add ¶ added in v0.6.1
func (g CommandGroups) Add(c *cobra.Command)
type FlagExposer ¶ added in v0.6.1
type FlagExposer interface {
ExposeFlags(cmd *cobra.Command, flags ...string) FlagExposer
}
func ActsAsRootCommand ¶ added in v0.6.1
func ActsAsRootCommand(cmd *cobra.Command, groups ...CommandGroup) FlagExposer
Click to show internal directories.
Click to hide internal directories.