Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BindPFlag (0.05 sec)

  1. cni/pkg/cmd/root.go

    	env.Register(envName, defaultValue, usage)
    	bindViper(name)
    }
    
    func bindViper(name string) {
    	if err := viper.BindPFlag(name, rootCmd.Flags().Lookup(name)); err != nil {
    		log.Error(err)
    		os.Exit(1)
    	}
    }
    
    func constructConfig() (*config.Config, error) {
    	installCfg := config.InstallConfig{
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Aug 16 15:33:47 UTC 2024
    - 12.7K bytes
    - Viewed (0)
Back to top