From 7a2cd0f4592559cbb729b71ba3f3b973d5b938ca Mon Sep 17 00:00:00 2001 From: loftkun Date: Fri, 25 Sep 2020 17:45:51 +0900 Subject: [PATCH] Removing Duplicate Command Additions --- cmd/minikube/cmd/delete.go | 1 - cmd/minikube/cmd/stop.go | 2 -- 2 files changed, 3 deletions(-) diff --git a/cmd/minikube/cmd/delete.go b/cmd/minikube/cmd/delete.go index 33a31488c1..6b50e46316 100644 --- a/cmd/minikube/cmd/delete.go +++ b/cmd/minikube/cmd/delete.go @@ -91,7 +91,6 @@ func init() { if err := viper.BindPFlags(deleteCmd.Flags()); err != nil { exit.Error(reason.InternalBindFlags, "unable to bind flags", err) } - RootCmd.AddCommand(deleteCmd) } // shotgun cleanup to delete orphaned docker container data diff --git a/cmd/minikube/cmd/stop.go b/cmd/minikube/cmd/stop.go index 72dbce79a0..dc595cff91 100644 --- a/cmd/minikube/cmd/stop.go +++ b/cmd/minikube/cmd/stop.go @@ -60,8 +60,6 @@ func init() { if err := viper.GetViper().BindPFlags(stopCmd.Flags()); err != nil { exit.Error(reason.InternalFlagsBind, "unable to bind flags", err) } - - RootCmd.AddCommand(stopCmd) } // runStop handles the executes the flow of "minikube stop"