opentofu/backend
Martin Atkins e21f0fa61e backend/local: Handle interactive prompts for variables in UI layer
During the 0.12 work we intended to move all of the variable value
collection logic into the UI layer (command package and backend packages)
and present them all together as a unified data structure to Terraform
Core. However, we didn't quite succeed because the interactive prompts
for unset required variables were still being handled _after_ calling
into Terraform Core.

Here we complete that earlier work by moving the interactive prompts for
variables out into the UI layer too, thus allowing us to handle final
validation of the variables all together in one place and do so in the UI
layer where we have the most context still available about where all of
these values are coming from.

This allows us to fix a problem where previously disabling input with
-input=false on the command line could cause Terraform Core to receive an
incomplete set of variable values, and fail with a bad error message.

As a consequence of this refactoring, the scope of terraform.Context.Input
is now reduced to only gathering provider configuration arguments. Ideally
that too would move into the UI layer somehow in a future commit, but
that's a problem for another day.
2019-10-10 10:07:01 -07:00
..
atlas Change backend.ValidateConfig to PrepareConfig 2019-02-25 18:37:20 -05:00
init Add Alibaba Cloud backend OSS with lock 2019-04-11 07:06:43 +08:00
local backend/local: Handle interactive prompts for variables in UI layer 2019-10-10 10:07:01 -07:00
remote slow down tfce polling to 1s 2019-09-30 14:22:15 -07:00
remote-state vendor: switch to HCL 2.0 in the HCL repository 2019-10-02 15:10:21 -07:00
backend.go Change backend.ValidateConfig to PrepareConfig 2019-02-25 18:37:20 -05:00
cli.go backend: Update interface and implementations for new config loader 2018-10-16 18:39:12 -07:00
nil_test.go backend: introduce the backend set of interfaces 2017-01-26 14:33:49 -08:00
nil.go Change backend.ValidateConfig to PrepareConfig 2019-02-25 18:37:20 -05:00
operation_type.go backend: introduce the backend set of interfaces 2017-01-26 14:33:49 -08:00
operationtype_string.go stringer: Regenerate files with latest version 2019-05-13 15:34:27 +01:00
testing.go vendor: switch to HCL 2.0 in the HCL repository 2019-10-02 15:10:21 -07:00
unparsed_value_test.go backend/local: Handle interactive prompts for variables in UI layer 2019-10-10 10:07:01 -07:00
unparsed_value.go backend/local: Handle interactive prompts for variables in UI layer 2019-10-10 10:07:01 -07:00