disable completions

This commit is contained in:
Adora Laura Kalb 2023-06-22 13:10:44 +02:00
parent 4d280fc40f
commit bf80d33b5e
Signed by: adoralaura
GPG key ID: 7A4552166FC8C056

View file

@ -4,10 +4,11 @@ Copyright © 2023 Laura Kalb <dev@lauka.net>
package cmd package cmd
import ( import (
"github.com/spf13/viper"
"log" "log"
"os" "os"
"github.com/spf13/viper"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )
@ -31,6 +32,7 @@ func Execute() {
log.Fatalln("Couldn't find config file at ./.env") log.Fatalln("Couldn't find config file at ./.env")
} }
rootCmd.CompletionOptions.DisableDefaultCmd = true
err = rootCmd.Execute() err = rootCmd.Execute()
if err != nil { if err != nil {
os.Exit(1) os.Exit(1)