terraform/backend/remote
Martin Atkins 89f986ded6 command+backend: generalized "plan mode"
So far we've only had "normal mode" and "destroy mode", where the latter
is activated either by "terraform plan -destroy" or "terraform destroy".

In preparation for introducing a third mode "refresh only" this
generalizes how we handle modes so we can potentially deal with an
arbitrary number of modes, although for now we only intend to have three.

Mostly this is just a different implementation of the same old behavior,
but there is one small user-visible difference here: the "terraform apply"
command now accepts a -destroy option, mirroring the option of the same
name on "terraform plan", which in turn makes "terraform destroy"
effectively a shorthand for "terraform apply -destroy".

This is intended to make us consistent that "terraform apply" without a
plan file argument accepts all of the same plan-customization options that
"terraform plan" does, which will in turn avoid us having to add a new
alias of "terraform plan" for each new plan mode we might add. The -help
output is changed in that vein here, although we'll wait for subsequent
commit to make a similar change to the website documentation just so we
can deal with the "refresh only mode" docs at the same time.
2021-04-27 08:23:54 -07:00
..
testdata clean up go mod for go-tfe 2019-09-27 14:16:41 -07:00
backend.go backend/remote: Add IsLocalOperations 2021-04-16 11:43:57 -04:00
backend_apply.go command+backend: generalized "plan mode" 2021-04-27 08:23:54 -07:00
backend_apply_test.go command+backend: generalized "plan mode" 2021-04-27 08:23:54 -07:00
backend_common.go command+backend: generalized "plan mode" 2021-04-27 08:23:54 -07:00
backend_context.go command+backend: generalized "plan mode" 2021-04-27 08:23:54 -07:00
backend_context_test.go clistate: Update clistate.Locker for command views 2021-02-16 07:19:22 -05:00
backend_mock.go backend: Validate remote backend Terraform version 2020-11-19 13:19:40 -05:00
backend_plan.go command+backend: generalized "plan mode" 2021-04-27 08:23:54 -07:00
backend_plan_test.go command+backend: generalized "plan mode" 2021-04-27 08:23:54 -07:00
backend_state.go backend/remote: Fix broken state lock retry 2021-02-19 15:47:18 -05:00
backend_state_test.go refactor tests to use modern states.State in favor of terraform.State where possible 2020-09-30 16:07:54 -04:00
backend_test.go backend/remote: Fix new workspace state migration 2021-03-15 15:48:14 -04:00
cli.go backend: Add per-operation diagnostic rendering 2021-02-12 14:30:35 -05:00
colorize.go backend/remote: implement the Local interface 2018-11-26 20:50:25 +01:00
remote_test.go backend: Faster remote backend tests 2020-11-18 16:00:05 -05:00
testing.go backend: Replace ShowDiagnostics with view.Diagnostics 2021-02-25 11:26:05 -05:00