diff --git a/internal/command/apply.go b/internal/command/apply.go index 9d481c06b..7405bddf0 100644 --- a/internal/command/apply.go +++ b/internal/command/apply.go @@ -29,8 +29,9 @@ func (c *ApplyCommand) Run(rawArgs []string) int { common, rawArgs := arguments.ParseView(rawArgs) c.View.Configure(common) - // Propagate -no-color for the remote backend's legacy use of Ui. This - // should be removed when the remote backend is migrated to views. + // Propagate -no-color for legacy use of Ui. The remote backend and + // cloud package use this; it should be removed when/if they are + // migrated to views. c.Meta.color = !common.NoColor c.Meta.Color = c.Meta.color diff --git a/internal/command/plan.go b/internal/command/plan.go index ec90d8371..a5ff74ac1 100644 --- a/internal/command/plan.go +++ b/internal/command/plan.go @@ -21,8 +21,9 @@ func (c *PlanCommand) Run(rawArgs []string) int { common, rawArgs := arguments.ParseView(rawArgs) c.View.Configure(common) - // Propagate -no-color for the remote backend's legacy use of Ui. This - // should be removed when the remote backend is migrated to views. + // Propagate -no-color for legacy use of Ui. The remote backend and + // cloud package use this; it should be removed when/if they are + // migrated to views. c.Meta.color = !common.NoColor c.Meta.Color = c.Meta.color diff --git a/internal/command/refresh.go b/internal/command/refresh.go index c7c041eb7..18891b414 100644 --- a/internal/command/refresh.go +++ b/internal/command/refresh.go @@ -23,8 +23,9 @@ func (c *RefreshCommand) Run(rawArgs []string) int { common, rawArgs := arguments.ParseView(rawArgs) c.View.Configure(common) - // Propagate -no-color for the remote backend's legacy use of Ui. This - // should be removed when the remote backend is migrated to views. + // Propagate -no-color for legacy use of Ui. The remote backend and + // cloud package use this; it should be removed when/if they are + // migrated to views. c.Meta.color = !common.NoColor c.Meta.Color = c.Meta.color