terraform/backend/local
Alisdair McDiarmid a7b7cd29fc cli: Migrate Terraform UI hook to command views
Move the code which renders Terraform hook callbacks as UI into the
views package, backed by a views.View instead of a cli.Ui. Update test
setup accordingly.

To allow commands to control this hook, we add a hooks member on the
backend Operation struct. This supersedes the hooks in the Terraform
context, which is not directly controlled by the command logic.

This commit should not change how Terraform works, and is refactoring in
preparation for more changes which move UI code out of the backend.
2021-02-16 07:18:22 -05:00
..
testdata cli: Move resource count code to command package 2021-01-29 15:29:35 -05:00
backend.go backend: Add per-operation diagnostic rendering 2021-02-12 14:30:35 -05:00
backend_apply.go cli: Migrate Terraform UI hook to command views 2021-02-16 07:18:22 -05:00
backend_apply_test.go backend: Add per-operation diagnostic rendering 2021-02-12 14:30:35 -05:00
backend_local.go cli: Migrate Terraform UI hook to command views 2021-02-16 07:18:22 -05:00
backend_local_test.go * backend/local: push responsibility for unlocking state into individual operations 2020-08-11 11:23:42 -04:00
backend_plan.go backend: Add per-operation diagnostic rendering 2021-02-12 14:30:35 -05:00
backend_plan_test.go backend: Add per-operation diagnostic rendering 2021-02-12 14:30:35 -05:00
backend_refresh.go backend: Add per-operation diagnostic rendering 2021-02-12 14:30:35 -05:00
backend_refresh_test.go backend: Add per-operation diagnostic rendering 2021-02-12 14:30:35 -05:00
backend_test.go Implement the remote enhanced backend 2018-11-06 16:29:46 +01:00
cli.go backend: Add per-operation diagnostic rendering 2021-02-12 14:30:35 -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: Add per-operation diagnostic rendering 2021-02-12 14:30:35 -05:00