Documentation ¶
Index ¶
Constants ¶
View Source
const ( SectionAliases = `{{if gt (len .Aliases) 0}}Aliases: {{.NameAndAliases}} {{end}}` SectionExamples = `{{if .HasExample}}Examples: {{trimRight .Example}} {{end}}` SectionSubcommands = `{{if .HasAvailableSubCommands}}{{cmdGroupsString .}} {{end}}` SectionFlags = `{{if .HasLocalFlags}}Options: {{flagsUsages .LocalFlags}} {{end}}` )
View Source
const Indentation = ` `
Variables ¶
This section is empty.
Functions ¶
func ActsAsRootCommand ¶
func ActsAsRootCommand(cmd *cobra.Command, groups ...CommandGroup)
Types ¶
type CommandGroup ¶
type CommandGroups ¶
type CommandGroups []CommandGroup
func (CommandGroups) AddTo ¶
func (g CommandGroups) AddTo(c *cobra.Command)
Click to show internal directories.
Click to hide internal directories.