mirror of
https://github.com/hashicorp/terraform.git
synced 2026-05-28 04:03:27 -04:00
Add code comment to make in-progress migration from Ui to View more obvious (#37492)
This commit is contained in:
parent
f931bc4e0e
commit
b11b54e142
1 changed files with 9 additions and 2 deletions
|
|
@ -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…
Reference in a new issue