- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for getRootCmd (0.28 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) -
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)