terraform/backend/local
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 cli: Move resource count code to command package 2021-01-29 15:29:35 -05:00
backend.go backend/local: Replace CLI with view instance 2021-02-18 12:08:08 -05: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_local.go command+backend: generalized "plan mode" 2021-04-27 08:23:54 -07:00
backend_local_test.go clistate: Update clistate.Locker for command views 2021-02-16 07:19:22 -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_refresh.go backend: Replace ShowDiagnostics with view.Diagnostics 2021-02-25 11:26:05 -05:00
backend_refresh_test.go backend: Replace ShowDiagnostics with view.Diagnostics 2021-02-25 11:26:05 -05:00
backend_test.go Implement the remote enhanced backend 2018-11-06 16:29:46 +01:00
cli.go backend/local: Replace CLI with view instance 2021-02-18 12:08:08 -05:00
hook_state.go state: remove deprecated state package (#25490) 2020-08-11 11:43:01 -04:00
hook_state_test.go state: remove deprecated state package (#25490) 2020-08-11 11:43:01 -04:00
local_test.go use a single log writer 2020-10-19 14:29:54 -04:00
testing.go backend: Replace ShowDiagnostics with view.Diagnostics 2021-02-25 11:26:05 -05:00