Merge branch 'main' into LPM-33

This commit is contained in:
Robin Olsen
2026-02-05 09:09:57 -08:00
committed by GitHub
8 changed files with 272 additions and 16 deletions

View File

@@ -9,13 +9,13 @@ import (
var svc *service.Services
var rootCmd = &cobra.Command{
Use: "pm",
Short: "Project Management CLI",
Long: `Project Management CLI for managing issues and tasks.`,
}
func Execute(services *service.Services) error {
svc = services
rootCmd.Use = svc.Config.RootCmd
return rootCmd.Execute()
}
@@ -23,7 +23,7 @@ func init() {
rootCmd.AddCommand(createCmd)
rootCmd.AddCommand(deleteCmd)
rootCmd.CompletionOptions.DisableDefaultCmd = false
rootCmd.AddGroup(&cobra.Group{ID: "other", Title: "Helping Commands"})
rootCmd.SetCompletionCommandGroupID("other")
rootCmd.SetHelpCommandGroupID("other")
rootCmd.AddGroup(&cobra.Group{ID: "help", Title: "Helping Commands"})
rootCmd.SetCompletionCommandGroupID("help")
rootCmd.SetHelpCommandGroupID("help")
}