mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-04-20 23:36:29 -04:00
Disable minidown for Windows
This commit is contained in:
parent
d2d21b2c3a
commit
9f25bff0f4
33
cli/internal/cmd/minidown_windows.go
Normal file
33
cli/internal/cmd/minidown_windows.go
Normal 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)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user