opentofu/command/e2etest
Laura Martin 6e1e614a56 Change -force to -auto-approve when destroying
Since an early version of Terraform, the `destroy` command has always
had the `-force` flag to allow an auto approval of the interactive
prompt. 0.11 introduced `-auto-approve` as default to `false` when using
the `apply` command.

The `-auto-approve` flag was introduced to reduce ambiguity of it's
function, but the `-force` flag was never updated for a destroy.

People often use wrappers when automating commands in Terraform, and the
inconsistency between `apply` and `destroy` means that additional logic
must be added to the wrappers to do similar functions. Both commands are
more or less able to run with similar syntax, and also heavily share
their code.

This commit updates the command in `destroy` to use the `-auto-approve` flag
making working with the Terraform CLI a more consistent experience.

We leave in `-force` in `destroy` for the time-being and flag it as
deprecated to ensure a safe switchover period.
2018-02-01 00:14:42 +00:00
..
test-fixtures Re-integrate the "terraform" provider into the main binary 2017-11-03 11:36:31 -07:00
.gitignore command/e2etest: end-to-end testing harness 2017-07-17 14:25:33 -07:00
automation_test.go command: "terraform apply" uses interactive confirmation by default 2017-11-01 06:54:39 -07:00
doc.go command/e2etest: end-to-end testing harness 2017-07-17 14:25:33 -07:00
init_test.go Re-integrate the "terraform" provider into the main binary 2017-11-03 11:36:31 -07:00
main_test.go Use t.Helper() in our test helpers 2017-08-28 09:59:30 -07:00
make-archive.sh command/e2etest: end-to-end testing harness 2017-07-17 14:25:33 -07:00
primary_test.go Change -force to -auto-approve when destroying 2018-02-01 00:14:42 +00:00
version_test.go command: Include provider versions in "terraform version" 2017-10-25 17:36:24 -07:00