From 02f03af1010fcaa95ff97177a8ac994c57e6e763 Mon Sep 17 00:00:00 2001 From: Priya Wadhwa Date: Mon, 26 Oct 2020 15:17:24 -0700 Subject: [PATCH] exit if using --schedule with windows as it is not yet supported --- cmd/minikube/cmd/stop.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/minikube/cmd/stop.go b/cmd/minikube/cmd/stop.go index f715db0473..5e3dc5a25f 100644 --- a/cmd/minikube/cmd/stop.go +++ b/cmd/minikube/cmd/stop.go @@ -17,6 +17,7 @@ limitations under the License. package cmd import ( + "runtime" "time" "github.com/docker/machine/libmachine" @@ -85,6 +86,9 @@ func runStop(cmd *cobra.Command, args []string) { } if scheduledStop != "" { + if runtime.GOOS == "windows" { + exit.Message(reason.Usage, "the --schedule flag is currently not supported on windows") + } duration, err := time.ParseDuration(scheduledStop) if err != nil { exit.Message(reason.Usage, "provided value {{.schedule}} to --schedule is not a valid Golang time.Duration", out.V{"schedule": scheduledStop})