From 49fb17d9fc62ba93984391b5d82240edfbe0b128 Mon Sep 17 00:00:00 2001 From: Brian de Alwis Date: Mon, 17 May 2021 11:24:23 -0400 Subject: [PATCH 1/3] Add "resume" as an alias for "unpause" --- cmd/minikube/cmd/unpause.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/minikube/cmd/unpause.go b/cmd/minikube/cmd/unpause.go index 0f52ca240d64..94b94d6b7cae 100644 --- a/cmd/minikube/cmd/unpause.go +++ b/cmd/minikube/cmd/unpause.go @@ -40,6 +40,7 @@ import ( // unpauseCmd represents the docker-pause command var unpauseCmd = &cobra.Command{ Use: "unpause", + Aliases: []string{"resume"}, Short: "unpause Kubernetes", Run: func(cmd *cobra.Command, args []string) { cname := ClusterFlagValue() From e4374e2189d741f0e41b0c7749756fa40e1bbf4a Mon Sep 17 00:00:00 2001 From: Medya Gh Date: Mon, 17 May 2021 18:35:37 -0700 Subject: [PATCH 2/3] geneate docs --- site/content/en/docs/commands/unpause.md | 4 ++++ site/content/en/docs/contrib/tests.en.md | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/site/content/en/docs/commands/unpause.md b/site/content/en/docs/commands/unpause.md index 88197773cbab..68cb245bcd07 100644 --- a/site/content/en/docs/commands/unpause.md +++ b/site/content/en/docs/commands/unpause.md @@ -17,6 +17,10 @@ unpause Kubernetes minikube unpause [flags] ``` +### Aliases + +[resume] + ### Options ``` diff --git a/site/content/en/docs/contrib/tests.en.md b/site/content/en/docs/contrib/tests.en.md index fe8cd62436b3..50434657fe11 100644 --- a/site/content/en/docs/contrib/tests.en.md +++ b/site/content/en/docs/contrib/tests.en.md @@ -365,4 +365,3 @@ upgrades Kubernetes from oldest to newest ## TestMissingContainerUpgrade tests a Docker upgrade where the underlying container is missing -TEST COUNT: 116 From f6a89cea06eb14493a9ce29b5d3d8cf375373155 Mon Sep 17 00:00:00 2001 From: Medya Gh Date: Mon, 17 May 2021 18:39:09 -0700 Subject: [PATCH 3/3] goimport --- cmd/minikube/cmd/unpause.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/minikube/cmd/unpause.go b/cmd/minikube/cmd/unpause.go index 94b94d6b7cae..f4a3a39f635f 100644 --- a/cmd/minikube/cmd/unpause.go +++ b/cmd/minikube/cmd/unpause.go @@ -39,9 +39,9 @@ import ( // unpauseCmd represents the docker-pause command var unpauseCmd = &cobra.Command{ - Use: "unpause", + Use: "unpause", Aliases: []string{"resume"}, - Short: "unpause Kubernetes", + Short: "unpause Kubernetes", Run: func(cmd *cobra.Command, args []string) { cname := ClusterFlagValue() register.SetEventLogPath(localpath.EventLog(cname))