disable completions
This commit is contained in:
parent
4d280fc40f
commit
bf80d33b5e
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue