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)