Files
opentf/internal/command
Alisdair McDiarmid 91d75baba1 cli: Improved error for invalid -var "foo = bar"
When specifying variable values on the command line, name-value pairs
must be joined with an equals sign, without surrounding spaces.
Previously Terraform would interpret "foo = bar" as assigning the value
" bar" to the variable named "foo ". This is never valid, as variable
names may not include whitespace.

This commit looks for this specific error and returns a diagnostic with
a suggestion for correcting it. We cannot simply trim whitespace,
because it is valid to write "foo= bar" to assign the value " bar" to
the variable "foo", as unlikely as it seems.
2022-05-03 09:14:29 -04:00
..
2021-08-17 15:20:05 -07:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2022-03-25 14:31:52 +00:00
2021-10-28 11:51:39 -04:00
2021-05-17 14:09:07 -07:00
2022-03-30 09:52:49 +01:00
2021-05-17 14:09:07 -07:00
2021-10-28 19:29:21 -05:00
2021-05-17 14:09:07 -07:00