Add code comment to make in-progress migration from Ui to View more obvious (#37492)

pull/37495/head
Sarah French 9 months ago committed by GitHub
parent f931bc4e0e
commit b11b54e142
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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.

Loading…
Cancel
Save