terraform/command/views
Martin Atkins b402fd9d3a command/views: Remove command-specific runningInAutomation
We now have RunningInAutomation has a general concern in views.View, so
we no longer need to specify it for each command-specific constructor
separately.

For this initial change I focused only on changing the exported interface
of the views package and let the command-specific views go on having their
own unexported fields containing a copy of the flag because it made this
change less invasive and I wasn't feeling sure yet about whether we
ought to have code within command-specific views directly access the
internals of views.View. However, maybe we'll simplify this further in
a later commit if we conclude that these copies of the flag are
burdensome.

The general version of this gets set directly inside the main package,
which might at some future point allow us to make the command package
itself unaware of this "running in automation" idea and thus reinforce
that it's intended as a presentation-only thing rather than as a
behavioral thing, but we'll save more invasive refactoring for another
day.
2021-05-10 10:50:05 -07:00
..
json views/json: Fix diag crash with invalid highlight 2021-05-04 08:35:42 -04:00
apply.go command/views: Remove command-specific runningInAutomation 2021-05-10 10:50:05 -07:00
apply_test.go command/views: Remove command-specific runningInAutomation 2021-05-10 10:50:05 -07:00
hook_count.go cli: Migrate apply to command views 2021-02-22 11:47:40 -05:00
hook_count_test.go cli: Migrate apply to command views 2021-02-22 11:47:40 -05:00
hook_json.go cli: Add JSON logs for operations commands 2021-04-30 11:37:36 -04:00
hook_json_test.go cli: Add JSON logs for operations commands 2021-04-30 11:37:36 -04:00
hook_ui.go cli: Fix misapplied terminal colors on run logs 2021-02-16 15:05:22 -05:00
hook_ui_test.go cli: Fix misapplied terminal colors on run logs 2021-02-16 15:05:22 -05:00
json_view.go cli: Add JSON logs for operations commands 2021-04-30 11:37:36 -04:00
json_view_test.go cli: Add JSON logs for operations commands 2021-04-30 11:37:36 -04:00
operation.go command/views: Remove baseState argument from plan-rendering views 2021-05-10 09:25:30 -07:00
operation_test.go command/views: Remove baseState argument from plan-rendering views 2021-05-10 09:25:30 -07:00
output.go views: Fix missing source in diagnostic output 2021-02-26 16:43:03 -05:00
output_test.go views: Expand test coverage for views.Output 2021-02-16 08:48:31 -05:00
plan.go command/views: Remove command-specific runningInAutomation 2021-05-10 10:50:05 -07:00
plan_test.go command/views: Remove command-specific runningInAutomation 2021-05-10 10:50:05 -07:00
refresh.go command/views: Remove command-specific runningInAutomation 2021-05-10 10:50:05 -07:00
refresh_test.go command/views: Remove command-specific runningInAutomation 2021-05-10 10:50:05 -07:00
show.go command/views: Remove baseState argument from plan-rendering views 2021-05-10 09:25:30 -07:00
state_locker.go views: Fix missing source in diagnostic output 2021-02-26 16:43:03 -05:00
test.go command: Experimental "terraform test" command 2021-02-22 14:21:45 -08:00
test_test.go command: Experimental "terraform test" command 2021-02-22 14:21:45 -08:00
validate.go cli: Migrate validate command to views 2021-03-18 15:56:28 -04:00
validate_test.go cli: Migrate validate command to views 2021-03-18 15:56:28 -04:00
view.go command/views: Remove command-specific runningInAutomation 2021-05-10 10:50:05 -07:00