cli: remove info color on monitored output

This commit is contained in:
Michael Schurter 2018-03-30 15:44:06 -07:00
parent 6b94029740
commit 8e7870b590
1 changed files with 9 additions and 0 deletions

View File

@ -68,6 +68,15 @@ type monitor struct {
// write output information to the provided ui. The length parameter determines // write output information to the provided ui. The length parameter determines
// the number of characters for identifiers in the ui. // the number of characters for identifiers in the ui.
func newMonitor(ui cli.Ui, client *api.Client, length int) *monitor { func newMonitor(ui cli.Ui, client *api.Client, length int) *monitor {
if colorUi, ok := ui.(*cli.ColoredUi); ok {
// Disable Info color for monitored output
ui = &cli.ColoredUi{
ErrorColor: colorUi.ErrorColor,
WarnColor: colorUi.WarnColor,
InfoColor: cli.UiColorNone,
Ui: colorUi.Ui,
}
}
mon := &monitor{ mon := &monitor{
ui: &cli.PrefixedUi{ ui: &cli.PrefixedUi{
InfoPrefix: "==> ", InfoPrefix: "==> ",