From 5e34f656b328b30d463de0f39ada262b3e7de312 Mon Sep 17 00:00:00 2001 From: Arsen Musayelyan Date: Sat, 21 Aug 2021 19:03:18 -0700 Subject: [PATCH] Disable completion command --- cmd/itctl/cmd/root.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/itctl/cmd/root.go b/cmd/itctl/cmd/root.go index 610f661..14c45bb 100644 --- a/cmd/itctl/cmd/root.go +++ b/cmd/itctl/cmd/root.go @@ -60,5 +60,6 @@ var rootCmd = &cobra.Command{ // Execute adds all child commands to the root command and sets flags appropriately. // This is called by main.main(). It only needs to happen once to the rootCmd. func Execute() { + rootCmd.CompletionOptions.DisableDefaultCmd = true cobra.CheckErr(rootCmd.Execute()) }