This commit is contained in:
abs3nt 2023-01-13 22:43:35 -08:00
parent 060532015c
commit c401262cd1

View File

@ -45,6 +45,11 @@ func Execute(defCmd string) {
}
func init() {
if len(os.Args) > 1 {
if os.Args[1] == "completion" || os.Args[1] == "__complete" {
return
}
}
cobra.OnInitialize(initConfig)
cobra.OnInitialize(initClient)
}