From 0afd52844b96579391f77698bf0555145b6d2be8 Mon Sep 17 00:00:00 2001 From: Roberth Strand Date: Thu, 30 Mar 2023 11:48:43 +0200 Subject: [PATCH] refactor: removed sample flag Commented out the sample flag that the framework comes with, as it was not in use. Choose to comment it out for now for easy reference, just in case we want to implement that type of toggle flags. Signed-off-by: Roberth Strand --- cmd/root.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index f15934fad0..446250bee2 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -1,9 +1,10 @@ package cmd import ( - "github.com/k8sgpt-ai/k8sgpt/cmd/generate" "os" + "github.com/k8sgpt-ai/k8sgpt/cmd/generate" + "github.com/fatih/color" "github.com/k8sgpt-ai/k8sgpt/cmd/analyze" "github.com/k8sgpt-ai/k8sgpt/cmd/auth" @@ -53,7 +54,7 @@ func init() { rootCmd.PersistentFlags().StringVar(&kubeconfig, "kubeconfig", "", "Path to a kubeconfig. Only required if out-of-cluster.") // Cobra also supports local flags, which will only run // when this action is called directly. - rootCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") + // rootCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") //Initialise the kubeconfig kubernetesClient, err := kubernetes.NewClient(masterURL, kubeconfig)