MCPcopy Index your code
hub / github.com/FairwindsOps/pluto / initializeConfig

Function initializeConfig

cmd/root.go:123–131  ·  view source on GitHub ↗
(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

121}
122
123func initializeConfig(cmd *cobra.Command) error {
124 v := viper.New()
125 v.SetEnvPrefix(envPrefix)
126 v.AutomaticEnv()
127
128 bindFlags(cmd, v)
129
130 return nil
131}
132
133func bindFlags(cmd *cobra.Command, v *viper.Viper) {
134 cmd.Flags().VisitAll(func(f *pflag.Flag) {

Callers 1

root.goFile · 0.85

Calls 1

bindFlagsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…