diff --git a/internal/command/meta.go b/internal/command/meta.go index d1d0bbb513..0dc89ecdd0 100644 --- a/internal/command/meta.go +++ b/internal/command/meta.go @@ -72,11 +72,18 @@ type Meta struct { // do some default behavior instead if so, rather than panicking. Streams *terminal.Streams - View *views.View + // View is the newer abstraction used for output from Terraform operations. + // View allows output to be rendered differently, depending on CLI settings. + // Currently the only non-default option is machine-readable output using the`-json` flag. + // We are slowly migrating Terraform operations away from using `cli.Ui` and towards + // using `views.View`, and so far only the commands with machine-readable output features are + // migrated. + // For more information see: https://github.com/hashicorp/terraform/issues/37439 + View *views.View // View for output Color bool // True if output should be colored GlobalPluginDirs []string // Additional paths to search for plugins - Ui cli.Ui // Ui for output + Ui cli.Ui // Ui for output. See View above. // Services provides access to remote endpoint information for // "terraform-native' services running at a specific user-facing hostname.