We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi everyone I'm trying to implement to
func init() { cobra.EnableCaseInsensitive = true cobra.EnableCommandSorting = false rootCmd.CompletionOptions.DisableDefaultCmd = true rootCmd.Flags().SortFlags = false rootCmd.PersistentFlags().SortFlags = false rootCmd.AddGroup(&cobra.Group{ID: "Group1", Title: "Group1 Subcommands:"}) }
var sub1Cmd = &cobra.Command{ Use: "sub1", GroupID: "Group1", Aliases: []string{"1"}, Run: func(cmd *cobra.Command, args []string) { fmt.Println("Hiii") }, } func init() { rootCmd.AddCommand(sub1Cmd) sub1Cmd.Flags().SortFlags = false sub1Cmd.Flags().StringP("ipaddress", "i", "0.0.0.0", "IP address to listen to") }
The text was updated successfully, but these errors were encountered:
Duplicate of #1831
Sorry, something went wrong.
No branches or pull requests
Hi everyone
I'm trying to implement to
The text was updated successfully, but these errors were encountered: