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