terraform/tfdiags
Martin Atkins c06675c616 command: New -compact-warnings option
When warnings appear in isolation (not accompanied by an error) it's
reasonable to want to defer resolving them for a while because they are
not actually blocking immediate work.

However, our warning messages tend to be long by default in order to
include all of the necessary context to understand the implications of
the warning, and that can make them overwhelming when combined with other
output.

As a compromise, this adds a new CLI option -compact-warnings which is
supported for all the main operation commands and which uses a more
compact format to print out warnings as long as they aren't also
accompanied by errors.

The default remains unchanged except that the threshold for consolidating
warning messages is reduced to one so that we'll now only show one of
each distinct warning summary.

Full warning messages are always shown if there's at least one error
included in the diagnostic set too, because in that case the warning
message could contain additional context to help understand the error.
2019-12-10 11:53:14 -08:00
..
config_traversals.go
consolidate_warnings.go command: New -compact-warnings option 2019-12-10 11:53:14 -08:00
consolidate_warnings_test.go command: New -compact-warnings option 2019-12-10 11:53:14 -08:00
contextual.go fix diagnostics handling 2019-11-21 09:14:50 -05:00
contextual_test.go
diagnostic.go Version tools per Go convention under tools.go 2019-10-17 22:23:39 +02:00
diagnostic_base.go
diagnostics.go
diagnostics_test.go
doc.go
error.go
hcl.go
rpc_friendly.go
rpc_friendly_test.go
severity_string.go
simple_warning.go
source_range.go
sourceless.go