pulumi/pkg/backend/display.go
Matt Ellis 39dbdc98e9 Clean up colorization logic
The existing logic would flow colorization information into the
engine, so depending on the settings in the CLI, the engine may or may
not have emitted colorized events. This coupling is not great and we
want to start moving to a world where the presentation happens
exclusively at the CLI level.

With this change, the engine will always produce strings that have the
colorization formatting directives (i.e. the directives that
reconquest/loreley understands) and the CLI will apply
colorization (which could mean either running loreley to turn the
directives into ANSI escape codes, or drop them or retain them, for
debuging purposes).

Fixes #742
2018-01-31 15:46:14 -08:00

11 lines
293 B
Go

// Copyright 2016-2017, Pulumi Corporation. All rights reserved.
package backend
import "github.com/pulumi/pulumi/pkg/diag/colors"
// DisplayOptions controls how the output of events are rendered
type DisplayOptions struct {
Color colors.Colorization // colorization to apply to events
}