Documentation ¶
Index ¶
- func HandleAttributeFlags(c *base.Command, suffix, fullField string, ...) error
- func HelpMap(resType string) map[string]func() string
- func PopulateAttributeFlags(c *base.Command, f *base.FlagSet, flagNames map[string][]string, ...)
- func PopulateCommonFlags(c *base.Command, f *base.FlagSet, resourceType string, ...)
- func PopulateSecretFlags(c *base.Command, f *base.FlagSet, flagNames map[string][]string, ...)
- func SynopsisFunc(inFunc, resType string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleAttributeFlags ¶ added in v0.7.0
func HandleAttributeFlags(c *base.Command, suffix, fullField string, sepFields []base.CombinedSliceFlagValue, defaultFunc func(), setFunc func(map[string]interface{})) error
HandleAttributeFlags takes in a command and a func to call for default (that is, set to nil) and non-default values. Suffix can be used to allow this logic to be used for various needs, e.g. -attr vs -secret.
func PopulateAttributeFlags ¶ added in v0.7.0
func PopulateCommonFlags ¶
func PopulateSecretFlags ¶ added in v0.7.0
func SynopsisFunc ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.