From 9f25bff0f422efc050beb10478808f0a6a6e665d Mon Sep 17 00:00:00 2001 From: Nils Hanke Date: Mon, 24 Oct 2022 18:14:02 +0200 Subject: [PATCH] Disable minidown for Windows --- cli/internal/cmd/minidown_windows.go | 33 ++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 cli/internal/cmd/minidown_windows.go diff --git a/cli/internal/cmd/minidown_windows.go b/cli/internal/cmd/minidown_windows.go new file mode 100644 index 000000000..2788e6b2b --- /dev/null +++ b/cli/internal/cmd/minidown_windows.go @@ -0,0 +1,33 @@ +//go:build !windows +// +build !windows + +/* +Copyright (c) Edgeless Systems GmbH + +SPDX-License-Identifier: AGPL-3.0-only +*/ + +package cmd + +import ( + "fmt" + "runtime" + + "github.com/spf13/cobra" +) + +func newMiniDownCmd() *cobra.Command { + cmd := &cobra.Command{ + Use: "down", + Short: "Destroy a MiniConstellation cluster", + Long: "Destroy a MiniConstellation cluster.", + Args: cobra.ExactArgs(0), + RunE: runDown, + } + + return cmd +} + +func runDown(cmd *cobra.Command, args []string) error { + return fmt.Errorf("termination of a QEMU based Constellation is not supported for %s/%s", runtime.GOOS, runtime.GOARCH) +}