Disable minidown for Windows

This commit is contained in:
Nils Hanke 2022-10-24 18:14:02 +02:00
parent d2d21b2c3a
commit 9f25bff0f4

View File

@ -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)
}