move help and completion command to group

This commit is contained in:
Robin Olsen
2026-02-05 11:05:36 +01:00
parent 5db7ff9216
commit 4a8ad82558

View File

@@ -21,5 +21,8 @@ func Execute(services *service.Services) error {
func init() { func init() {
rootCmd.AddCommand(createCmd) rootCmd.AddCommand(createCmd)
rootCmd.CompletionOptions.DisableDefaultCmd = true rootCmd.CompletionOptions.DisableDefaultCmd = false
rootCmd.AddGroup(&cobra.Group{ID: "other", Title: "Helping Commands"})
rootCmd.SetCompletionCommandGroupID("other")
rootCmd.SetHelpCommandGroupID("other")
} }