Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for AutomaticEnv (0.14 sec)

  1. istioctl/cmd/root.go

    	if configType != "" {
    		configType = configType[1:]
    	}
    
    	// Allow users to override some variables through $HOME/.istioctl/config.yaml
    	// and environment variables.
    	viper.SetEnvPrefix("ISTIOCTL")
    	viper.AutomaticEnv()
    	viper.AllowEmptyEnv(true) // So we can say ISTIOCTL_CERT_DIR="" to suppress certs
    	viper.SetConfigName(configName)
    	viper.SetConfigType(configType)
    	viper.AddConfigPath(configPath)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 15:59:33 UTC 2024
    - 10K bytes
    - Viewed (0)
  2. cni/pkg/cmd/root.go

    			}
    		}
    
    		return
    	},
    }
    
    // GetCommand returns the main cobra.Command object for this application
    func GetCommand() *cobra.Command {
    	return rootCmd
    }
    
    func init() {
    	viper.AutomaticEnv()
    	viper.AllowEmptyEnv(true)
    	viper.SetEnvKeyReplacer(strings.NewReplacer("-", "_"))
    	logOptions.AttachCobraFlags(rootCmd)
    	ctrlzOptions.AttachCobraFlags(rootCmd)
    
    	rootCmd.AddCommand(version.CobraCommand())
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 16:26:35 UTC 2024
    - 13K bytes
    - Viewed (0)
Back to top