From 76c54339cf7f378aba2ba496dcda249c1e3cc73b Mon Sep 17 00:00:00 2001 From: Elara 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()) }