Skip to content

Commit f99a3a6

Browse files
committed
refactor: deprecate deploy and destroy commands
1 parent 32a6645 commit f99a3a6

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

cmd/dvb/main.go

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,14 @@ func main() {
6161
newDaemonCmd(),
6262
newApplyCmd(),
6363
newGetCmd(),
64+
newDeleteCmd(),
6465
newDiffCmd(),
65-
newDeployCmd(),
66+
newDeployCmd(), // deprecated
6667
newListCmd(),
6768
newStatusCmd(),
6869
newStartCmd(),
6970
newStopCmd(),
70-
newDestroyCmd(),
71+
newDestroyCmd(), // deprecated
7172
newNodeCmd(),
7273
newUpgradeCmd(),
7374
newTxCmd(),
@@ -163,9 +164,10 @@ func newDeployCmd() *cobra.Command {
163164
)
164165

165166
cmd := &cobra.Command{
166-
Use: "deploy [name]",
167-
Short: "Deploy a new devnet",
168-
Args: cobra.ExactArgs(1),
167+
Use: "deploy [name]",
168+
Short: "Deploy a new devnet",
169+
Deprecated: "use 'dvb apply -f <file>' instead",
170+
Args: cobra.ExactArgs(1),
169171
RunE: func(cmd *cobra.Command, args []string) error {
170172
name := args[0]
171173

@@ -316,9 +318,10 @@ func newDestroyCmd() *cobra.Command {
316318
var force bool
317319

318320
cmd := &cobra.Command{
319-
Use: "destroy [devnet]",
320-
Short: "Destroy a devnet",
321-
Args: cobra.ExactArgs(1),
321+
Use: "destroy [devnet]",
322+
Short: "Destroy a devnet",
323+
Deprecated: "use 'dvb delete devnet <name>' or 'dvb delete -f <file>' instead",
324+
Args: cobra.ExactArgs(1),
322325
RunE: func(cmd *cobra.Command, args []string) error {
323326
name := args[0]
324327

0 commit comments

Comments
 (0)