- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for SetHelpFunc (0.21 sec)
-
istioctl/cmd/options.go
} func optionsCommand(rootCmd *cobra.Command) *cobra.Command { retval := &cobra.Command{ Use: "options", Short: "Displays istioctl global options", Args: cobra.ExactArgs(0), } 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)
Go - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Thu Jun 15 15:02:17 GMT 2023 - 1.8K bytes - Viewed (0) -
istioctl/cmd/root.go
}) } return rootCmd } func hideInheritedFlags(orig *cobra.Command, hidden ...string) { orig.SetHelpFunc(func(cmd *cobra.Command, args []string) { for _, hidden := range hidden { _ = cmd.Flags().MarkHidden(hidden) // nolint: errcheck } orig.SetHelpFunc(nil) orig.HelpFunc()(cmd, args) }) } func ConfigureLogging(_ *cobra.Command, _ []string) error {
Go - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Thu Apr 11 20:51:30 GMT 2024 - 10K bytes - Viewed (0)