Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for AllowEmptyEnv (0.5 sec)

  1. istioctl/cmd/root.go

    		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)
    	viper.SetEnvKeyReplacer(strings.NewReplacer("-", "_"))
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 11 20:51:30 GMT 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())
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 12.5K bytes
    - Viewed (0)
Back to top