terraform/internal/command/format
Alisdair McDiarmid ad9c89fc19 cli: Fix missing identifying attributes in diff
When rendering a diff for an object value within a resource, Terraform
should always display the value of attributes which may be identifying.
At present, this is a simple rule: render attributes named "id", "name",
or "tags".

Prior to this commit, Terraform would only apply this rule to top-level
resource attributes and those inside nested blocks. Here we extend the
implementation to include object values in other contexts as well.
2022-03-16 10:38:52 -04:00
..
diagnostic.go command/views/json: Never generate invalid diagnostic snippet offsets 2021-06-28 13:42:28 -07:00
diagnostic_test.go update to use typed sensitive marks 2021-06-25 12:49:07 -04:00
diff.go cli: Fix missing identifying attributes in diff 2022-03-16 10:38:52 -04:00
diff_test.go cli: Fix missing identifying attributes in diff 2022-03-16 10:38:52 -04:00
difflanguage_string.go cli: Refactor resource drift rendering 2021-09-16 15:22:37 -04:00
format.go Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
object_id.go unmark object ID or Name for formatting 2021-08-17 12:24:43 -04:00
object_id_test.go unmark object ID or Name for formatting 2021-08-17 12:24:43 -04:00
state.go Move terraform/ to internal/terraform/ 2021-05-17 14:09:07 -07:00
state_test.go Move terraform/ to internal/terraform/ 2021-05-17 14:09:07 -07:00
trivia.go Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00