templates

package
v1.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

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

func UseOptionsTemplates(cmd *cobra.Command)

Types

type CommandGroup added in v0.6.1

type CommandGroup struct {
	Message  string
	Commands []*cobra.Command
}

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)

func (CommandGroups) Has added in v0.6.1

func (g CommandGroups) Has(c *cobra.Command) bool

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, filters []string, groups ...CommandGroup) FlagExposer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL