- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for getRootCmd (0.25 sec)
-
operator/cmd/operator/main.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Mar 02 03:03:35 UTC 2024 - 785 bytes - Viewed (0) -
operator/cmd/mesh/root.go
} func addFlags(cmd *cobra.Command, rootArgs *RootArgs) { cmd.PersistentFlags().BoolVarP(&rootArgs.DryRun, "dry-run", "", false, "Console/log output only, make no changes.") } // GetRootCmd returns the root of the cobra command-tree. func GetRootCmd(ctx cli.Context, args []string) *cobra.Command { rootCmd := &cobra.Command{ Use: "mesh", Short: "Command line Istio install utility.", SilenceUsage: true,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Mar 15 01:18:49 UTC 2024 - 3.9K bytes - Viewed (0) -
operator/cmd/mesh/profile-list_test.go
g := NewWithT(t) args := []string{"profile", "list", "--dry-run", "--manifests", filepath.Join(env.IstioSrc, "manifests")} kubeClientFunc = func() (kube.CLIClient, error) { return nil, nil } rootCmd := GetRootCmd(cli.NewFakeContext(&cli.NewFakeContextOption{ Version: "25", }), args) var out bytes.Buffer rootCmd.SetOut(&out) rootCmd.SetErr(&out) err := rootCmd.Execute() if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 03 06:27:07 UTC 2024 - 1.5K bytes - Viewed (0) -
istioctl/cmd/root.go
return err } return nil } func init() { viper.SetDefault("istioNamespace", constants.IstioSystemNamespace) viper.SetDefault("xds-port", 15012) } // GetRootCmd returns the root of the cobra command-tree. func GetRootCmd(args []string) *cobra.Command { rootCmd := &cobra.Command{ Use: "istioctl", Short: "Istio control interface.", SilenceUsage: true,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 15:59:33 UTC 2024 - 10K bytes - Viewed (0) -
pkg/test/framework/components/istioctl/kube.go
cmdArgs := append([]string{ "--kubeconfig", c.kubeconfig, }, args...) var out bytes.Buffer var err bytes.Buffer start := time.Now() invokeMutex.Lock() rootCmd := cmd.GetRootCmd(cmdArgs) rootCmd.SetOut(&out) rootCmd.SetErr(&err) // istioctl will overwrite logs which we don't want. // It happens to do this via PersistentPreRunE, which we can disable.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Mar 29 02:29:02 UTC 2024 - 3.7K bytes - Viewed (0) -
operator/cmd/mesh/manifest_shared_test.go
return runCommand(args) } // runCommand runs the given command string. func runCommand(command string) (string, error) { var out bytes.Buffer rootCmd := GetRootCmd(cli.NewFakeContext(&cli.NewFakeContextOption{ Version: "25", }), strings.Split(command, " ")) rootCmd.SetOut(&out) err := rootCmd.Execute() return out.String(), err }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Feb 20 22:39:28 UTC 2024 - 11.7K bytes - Viewed (0)