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
|
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)
|
||||||
|
|
Loading…
Reference in a new issue