From bf80d33b5e26af73e28ffe2cb534ce2a05c4b2c3 Mon Sep 17 00:00:00 2001 From: lauralani Date: Thu, 22 Jun 2023 13:10:44 +0200 Subject: [PATCH] disable completions --- cmd/root.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/root.go b/cmd/root.go index 1f49365..0baf2c5 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -4,10 +4,11 @@ Copyright © 2023 Laura Kalb package cmd import ( - "github.com/spf13/viper" "log" "os" + "github.com/spf13/viper" + "github.com/spf13/cobra" ) @@ -31,6 +32,7 @@ func Execute() { log.Fatalln("Couldn't find config file at ./.env") } + rootCmd.CompletionOptions.DisableDefaultCmd = true err = rootCmd.Execute() if err != nil { os.Exit(1)