Skip to content

Commit

Permalink
make the destructive usage of the force flag obvious
Browse files Browse the repository at this point in the history
  • Loading branch information
tonerdo committed Feb 21, 2018
1 parent 797b52b commit ad74d15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion commands/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func CreateCli(version string) *cli.App {
},
cli.BoolFlag{
Name: "force",
Usage: "Skip nuke confirmation prompt",
Usage: "Skip nuke confirmation prompt. WARNING: this will automatically delete all resources without any confirmation",
},
}

Expand Down Expand Up @@ -115,6 +115,7 @@ func awsNuke(c *cli.Context) error {
}
}
} else {
logging.Logger.Infoln("The --force flag is set, so proceeding without confirmation.")
if err := aws.NukeAllResources(account, regions); err != nil {
return err
}
Expand Down

0 comments on commit ad74d15

Please sign in to comment.