mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
This is a prototype of how the CLI layer might make use of Terraform Core's ability to produce a partial plan if it encounters an error during planning, with two new situations: - When using local CLI workflow, Terraform will show the partial plan before showing any errors. - "terraform plan" has a new option -always-out=..., which is similar to the existing -out=... but additionally instructs Terraform to produce a plan file even if the plan is incomplete due to errors. This means that the plan can still be inspected by external UI implementations. This is just a prototype to explore how these parts might fit together. It's not a complete implementation and so should not be shipped. In particular, it doesn't include any mention of a plan being incomplete in the "terraform show -json" output or in the "terraform plan -json" output, both of which would be required for a complete solution. |
||
---|---|---|
.. | ||
json | ||
testdata/show | ||
apply_test.go | ||
apply.go | ||
hook_count_test.go | ||
hook_count.go | ||
hook_json_test.go | ||
hook_json.go | ||
hook_ui_test.go | ||
hook_ui.go | ||
json_view_test.go | ||
json_view.go | ||
operation_test.go | ||
operation.go | ||
output_test.go | ||
output.go | ||
plan_test.go | ||
plan.go | ||
refresh_test.go | ||
refresh.go | ||
show_test.go | ||
show.go | ||
state_locker.go | ||
test_test.go | ||
test.go | ||
validate_test.go | ||
validate.go | ||
view.go |