terraform/command/format
Kristin Laemmert 2b4e389839
Mildwonkey/nested type format (#27793)
* command/format: check for sensitive NestedTypes

Eventually, the diff formatter will need to be updated to properly
handle NestedTypes, but for now we can let the existing function deal
with them as regular cty.Object-type attributes.

To avoid printing sensitive nested attributes, we will treat any
attribute with at least one sensitive nested attribute as an entirely
sensitive attribute.

* bugfix for Object ImpliedType()

ImpliedType() was returning too early when the given object had optional
attributes, therefore skipping the incredibly important step of
accounting for the nesting mode when returning said type.
2021-02-18 08:48:52 -05:00
..
diagnostic.go command: no visual warning hierarchy in -no-color 2021-01-27 09:26:53 -08:00
diagnostic_test.go command: no visual warning hierarchy in -no-color 2021-01-27 09:26:53 -08:00
diff.go Mildwonkey/nested type format (#27793) 2021-02-18 08:48:52 -05:00
diff_test.go Mildwonkey/nested type format (#27793) 2021-02-18 08:48:52 -05:00
format.go command/format: a package for formatting plans/state for output 2017-01-26 14:33:49 -08:00
object_id.go command: Reinstate object ids in the UIHook progress logs 2018-10-16 19:14:11 -07:00
object_id_test.go Updates after running `make fmt` with Go v1.11.1 2018-10-17 14:11:08 -07:00
state.go Merge pull request #27081 from hashicorp/jbardin/staticcheck 2020-12-02 15:43:10 -05:00
state_test.go command: no visual warning hierarchy in -no-color 2021-01-27 09:26:53 -08:00
trivia.go command/format: Don't try to fill the last terminal column 2021-01-13 15:37:04 -08:00