Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for AddRootFlags (0.19 sec)

  1. istioctl/pkg/cli/option.go

    	FlagIstioNamespace = "istioNamespace"
    )
    
    type RootFlags struct {
    	kubeconfig     *string
    	configContext  *string
    	namespace      *string
    	istioNamespace *string
    
    	defaultNamespace string
    }
    
    func AddRootFlags(flags *pflag.FlagSet) *RootFlags {
    	r := &RootFlags{
    		kubeconfig:     ptr.Of[string](""),
    		configContext:  ptr.Of[string](""),
    		namespace:      ptr.Of[string](""),
    		istioNamespace: ptr.Of[string](""),
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 18:01:27 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  2. istioctl/cmd/root.go

    		Long: `Istio configuration command line utility for service operators to
    debug and diagnose their Istio mesh.
    `,
    	}
    
    	rootCmd.SetArgs(args)
    
    	flags := rootCmd.PersistentFlags()
    	rootOptions := cli.AddRootFlags(flags)
    
    	ctx := cli.NewCLIContext(rootOptions)
    
    	_ = rootCmd.RegisterFlagCompletionFunc(cli.FlagIstioNamespace, func(
    		cmd *cobra.Command, args []string, toComplete string,
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 11 20:51:30 GMT 2024
    - 10K bytes
    - Viewed (0)
Back to top