Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFlags ¶
func AddFlags(v *viper.Viper, command *cobra.Command, inits ...func(*flag.FlagSet)) (*viper.Viper, *cobra.Command)
AddFlags adds flags to command and viper and configures
Types ¶
type StringSlice ¶
type StringSlice []string
StringSlice implements the pflag.Value interface and allows for parsing multiple
config values with the same name
It purposefully mimics pFlag.stringSliceValue (https://github.com/spf13/pflag/blob/master/string_slice.go)
in order to be treated like a string slice by both viper and pflag cleanly
Click to show internal directories.
Click to hide internal directories.