Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NamedFlagSets ¶
type NamedFlagSets struct { // Order is an ordered list of flag set names. Order []string // FlagSets stores the flag sets by name. FlagSets map[string]*pflag.FlagSet }
NamedFlagSets stores named flag sets in the order of calling FlagSet.
func (*NamedFlagSets) AddToCobraCommand ¶
func (nfs *NamedFlagSets) AddToCobraCommand(cmd *cobra.Command)
func (*NamedFlagSets) BindEnvsForViper ¶
func (nfs *NamedFlagSets) BindEnvsForViper(prefix string) error
Click to show internal directories.
Click to hide internal directories.