don't show ui color if we're not colorized
This commit is contained in:
parent
e04f87effe
commit
60955d8c2c
|
@ -92,10 +92,12 @@ func (c BuildCommand) Run(args []string) int {
|
||||||
Color: colors[i%len(colors)],
|
Color: colors[i%len(colors)],
|
||||||
Ui: ui,
|
Ui: ui,
|
||||||
}
|
}
|
||||||
|
if _, ok := c.Ui.(*packer.MachineReadableUi); !ok {
|
||||||
|
ui.Say(fmt.Sprintf("%s output will be in this color.", b))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
buildUis[b] = ui
|
buildUis[b] = ui
|
||||||
ui.Say(fmt.Sprintf("%s output will be in this color.", b))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add a newline between the color output and the actual output
|
// Add a newline between the color output and the actual output
|
||||||
|
|
Loading…
Reference in New Issue