check if cobra golang cli tooling allows any kind of command grouping without being…
Jump to turn (17)
- 1check if cobra golang cli tooling allows any kind of command grouping without be
- 2great! Please create a branch where we put all the hidden commands on the same g
- 3I want also to be marked as experimental -> blame/why/runner/checkpoint policy
- 4Not sure if experimental.State is the more semantically correct naming, as what
- 5Implement! Now!!
- 6ship it as draft
- 7this is how we want to have the experimental commands visible/hidden based on th
- 8y
- 9/review 1703
- 10ship it and change draft to ready
- 11review /review 1703
- 12fix the findings
- 13delete the created doc under superpowers
- 14do we need the new task.build inside mise.toml?
- 15y
- 16review copilot feedback from the PR
- 17b
- User
check if cobra golang cli tooling allows any kind of command grouping without being under same parent command
Assistant
Yes. Cobra has
cobra.Group— groups commands in help output without nesting them under shared parent.How:
gorootCmd.AddGroup(&cobra.Group{ID: "auth", Title: "Authentication:"}) loginCmd.GroupID = "auth" logoutCmd.GroupID = "auth" rootCmd.AddCommand(loginCmd, logoutCmd)loginandlogoutstay top-level commands (entire login, notentire auth login), but help lists them under "Authentication:" header.