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
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)