Skip to content

Commit

Permalink
refactor: removed sample flag
Browse files Browse the repository at this point in the history
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 <me@robstr.dev>
  • Loading branch information
roberthstrand committed Mar 30, 2023
1 parent f95c1e1 commit 0afd528
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 0afd528

Please sign in to comment.