From 0e5e22619be3c25faff03ce580ba239303d35238 Mon Sep 17 00:00:00 2001 From: Robin Olsen Date: Sun, 8 Feb 2026 12:30:24 +0100 Subject: [PATCH] add a flags struct other commands can impelemt enable completion command --- pkg/cli/commands/root.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkg/cli/commands/root.go b/pkg/cli/commands/root.go index 418d7ae..296d029 100644 --- a/pkg/cli/commands/root.go +++ b/pkg/cli/commands/root.go @@ -14,6 +14,15 @@ import ( // Must be called before executing any commands to ensure services are available. var svc *service.Services +type Flags struct { + interactive bool + title string + description string + status string + issueType string + priority int +} + // rootCmd is the base command for the CLI application. var rootCmd = &cobra.Command{ Short: "Project Management CLI", @@ -56,7 +65,7 @@ func ExecuteArgsString(args []string) (string, error) { // init function to set up the command hierarchy and options. func init() { - rootCmd.CompletionOptions.DisableDefaultCmd = true + rootCmd.CompletionOptions.DisableDefaultCmd = false rootCmd.AddGroup(&cobra.Group{ID: "help", Title: "Helping Commands"}) rootCmd.SetCompletionCommandGroupID("help") rootCmd.SetHelpCommandGroupID("help")