Skip to content

Commit

Permalink
Require args for destroy commands
Browse files Browse the repository at this point in the history
  • Loading branch information
ipmb committed Sep 29, 2021
1 parent 531767c commit 5c134b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/destroy.go
Expand Up @@ -171,6 +171,7 @@ var destroyRedisCmd = &cobra.Command{
Use: "redis <name>",
Short: "destroy AWS resources used by an AppPack Redis instance",
Long: "*Requires AWS credentials.*",
Args: cobra.ExactArgs(1),
DisableFlagsInUseLine: true,
Run: func(cmd *cobra.Command, args []string) {
stackName := fmt.Sprintf(redisStackNameTmpl, args[0])
Expand All @@ -197,6 +198,7 @@ var destroyDatabaseCmd = &cobra.Command{
Use: "database <name>",
Short: "destroy AWS resources used by an AppPack Database",
Long: "*Requires AWS credentials.*",
Args: cobra.ExactArgs(1),
DisableFlagsInUseLine: true,
Run: func(cmd *cobra.Command, args []string) {
startSpinner()
Expand Down

0 comments on commit 5c134b6

Please sign in to comment.