Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for VisitAll (0.36 sec)

  1. istioctl/cmd/options.go

    	}
    
    	retval.SetHelpFunc(func(c *cobra.Command, args []string) {
    		c.Printf("The following options can be passed to any command:\n")
    		// (Currently the only global options we show are help options)
    		rootCmd.PersistentFlags().VisitAll(func(flag *pflag.Flag) {
    			if _, ok := helpFlags[flag.Name]; ok {
    				// Currently every flag.Shorthand is "", so there is no point in showing shorthands
    				shorthand := "   "
    				if flag.Shorthand != "" {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  2. istioctl/pkg/version/version.go

    		GetRemoteVersion: getRemoteInfoWrapper(ctx, &profileCmd, &opts),
    		GetProxyVersions: getProxyInfoWrapper(ctx, &opts),
    	})
    	opts.AttachControlPlaneFlags(versionCmd)
    
    	versionCmd.Flags().VisitAll(func(flag *pflag.Flag) {
    		if flag.Name == "short" {
    			err := flag.Value.Set("true")
    			if err != nil {
    				fmt.Fprintf(os.Stdout, "set flag %q as true failed due to error %v", flag.Name, err)
    			}
    		}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 8.3K bytes
    - Viewed (0)
Back to top