From 59e97dd201acd20ae8777367a6ce219ceeea5de7 Mon Sep 17 00:00:00 2001 From: Joel Longtine Date: Fri, 18 Feb 2022 14:54:49 -0700 Subject: [PATCH] Remove cmd down Signed-off-by: Joel Longtine --- cmd/dagger/cmd/down.go | 32 -------------------------------- cmd/dagger/cmd/root.go | 1 - 2 files changed, 33 deletions(-) delete mode 100644 cmd/dagger/cmd/down.go diff --git a/cmd/dagger/cmd/down.go b/cmd/dagger/cmd/down.go deleted file mode 100644 index 398ade87..00000000 --- a/cmd/dagger/cmd/down.go +++ /dev/null @@ -1,32 +0,0 @@ -package cmd - -import ( - "github.com/spf13/cobra" - "github.com/spf13/viper" -) - -var downCmd = &cobra.Command{ - Use: "down", - Short: "Take an environment offline (WARNING: may destroy infrastructure)", - Args: cobra.NoArgs, - PreRun: func(cmd *cobra.Command, args []string) { - // Fix Viper bug for duplicate flags: - // https://github.com/spf13/viper/issues/233 - if err := viper.BindPFlags(cmd.Flags()); err != nil { - panic(err) - } - }, - Run: func(cmd *cobra.Command, args []string) { - panic("not implemented") - }, - // Remove hidden flag once command has been implemented - Hidden: true, -} - -func init() { - downCmd.Flags().Bool("no-cache", false, "Disable all run cache") - - if err := viper.BindPFlags(downCmd.Flags()); err != nil { - panic(err) - } -} diff --git a/cmd/dagger/cmd/root.go b/cmd/dagger/cmd/root.go index 90d42a57..0f9c2327 100644 --- a/cmd/dagger/cmd/root.go +++ b/cmd/dagger/cmd/root.go @@ -55,7 +55,6 @@ func init() { initCmd, listCmd, upCmd, - downCmd, loginCmd, logoutCmd, versionCmd,