terraform/command/arguments
Martin Atkins 3c8a4e6e05 command+backend/local: -refresh-only and drift detection
This is a light revamp of our plan output to make use of Terraform core's
new ability to report both the previous run state and the refreshed state,
allowing us to explicitly report changes made outside of Terraform.

Because whether a plan has "changes" or not is no longer such a
straightforward matter, this now merges views.Operation.Plan with
views.Operation.PlanNoChanges to produce a single function that knows how
to report all of the various permutations. This was also an opportunity
to fill some holes in our previous logic which caused it to produce some
confusing messages, including a new tailored message for when
"terraform destroy" detects that nothing needs to be destroyed.

This also allows users to request the refresh-only planning mode using a
new -refresh-only command line option. In that case, Terraform _only_
performs drift detection, and so applying a refresh-only plan only
involves writing a new state snapshot, without changing any real
infrastructure objects.
2021-05-13 09:05:06 -07:00
..
apply.go cli: Add JSON logs for operations commands 2021-04-30 11:37:36 -04:00
apply_test.go command: New -replace=... planning option 2021-05-03 15:43:23 -07:00
default.go cli: Add initial command views abstraction 2021-02-11 15:06:39 -05:00
extended.go command+backend/local: -refresh-only and drift detection 2021-05-13 09:05:06 -07:00
flags.go cli: Migrate apply to command views 2021-02-22 11:47:40 -05:00
output.go cli: Add initial command views abstraction 2021-02-11 15:06:39 -05:00
output_test.go cli: Add initial command views abstraction 2021-02-11 15:06:39 -05:00
plan.go cli: Add JSON logs for operations commands 2021-04-30 11:37:36 -04:00
plan_test.go cli: Add JSON logs for operations commands 2021-04-30 11:37:36 -04:00
refresh.go cli: Add JSON logs for operations commands 2021-04-30 11:37:36 -04:00
refresh_test.go cli: Add JSON logs for operations commands 2021-04-30 11:37:36 -04:00
test.go command: Experimental "terraform test" command 2021-02-22 14:21:45 -08:00
test_test.go command: Experimental "terraform test" command 2021-02-22 14:21:45 -08:00
types.go cli: Add JSON logs for operations commands 2021-04-30 11:37:36 -04:00
validate.go cli: Migrate validate command to views 2021-03-18 15:56:28 -04:00
validate_test.go cli: Migrate validate command to views 2021-03-18 15:56:28 -04:00
view.go cli: Add global view arguments parser 2021-02-12 09:56:02 -05:00
view_test.go cli: Add global view arguments parser 2021-02-12 09:56:02 -05:00