package templates
import "k8s.io/kubernetes/pkg/kubectl/cmd/templates"
Index ¶
- func MainHelpTemplate() string
- func MainUsageTemplate() string
- func OptionsHelpTemplate() string
- func OptionsUsageTemplate() string
- func UseOptionsTemplates(cmd *cobra.Command)
- type CommandGroup
- type CommandGroups
- func AddAdditionalCommands(g CommandGroups, message string, cmds []*cobra.Command) CommandGroups
- func (g CommandGroups) Add(c *cobra.Command)
- func (g CommandGroups) Has(c *cobra.Command) bool
- type FlagExposer
Functions ¶
func MainHelpTemplate ¶
func MainHelpTemplate() string
func MainUsageTemplate ¶
func MainUsageTemplate() string
func OptionsHelpTemplate ¶
func OptionsHelpTemplate() string
func OptionsUsageTemplate ¶
func OptionsUsageTemplate() string
func UseOptionsTemplates ¶
Types ¶
type CommandGroup ¶
type CommandGroups ¶
type CommandGroups []CommandGroup
func AddAdditionalCommands ¶
func AddAdditionalCommands(g CommandGroups, message string, cmds []*cobra.Command) CommandGroups
func (CommandGroups) Add ¶
func (g CommandGroups) Add(c *cobra.Command)
func (CommandGroups) Has ¶
func (g CommandGroups) Has(c *cobra.Command) bool
type FlagExposer ¶
type FlagExposer interface { ExposeFlags(cmd *cobra.Command, flags ...string) FlagExposer }
func ActsAsRootCommand ¶
func ActsAsRootCommand(cmd *cobra.Command, filters []string, groups ...CommandGroup) FlagExposer
Source Files ¶
templater.go templates.go
- Version
- v1.4.5
- Published
- Oct 29, 2016
- Platform
- js/wasm
- Imports
- 7 packages
- Last checked
- 52 seconds ago –
Tools for package owners.