Documentation ¶ Index ¶ func AddFlags(v *viper.Viper, command *cobra.Command, inits ...func(*flag.FlagSet)) (*viper.Viper, *cobra.Command) func Viperize(inits ...func(*flag.FlagSet)) (*viper.Viper, *cobra.Command) 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 func Viperize ¶ func Viperize(inits ...func(*flag.FlagSet)) (*viper.Viper, *cobra.Command) Viperize creates new Viper and command add passes flags to command Viper is initialized with flags from command and configured to accept flags as environmental variables. Characters `.-` in environmental variables are changed to `_` Types ¶ This section is empty. Source Files ¶ View all Source files config.go Click to show internal directories. Click to hide internal directories.