cli: remove info color on monitored output
This commit is contained in:
parent
6b94029740
commit
8e7870b590
|
@ -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: "==> ",
|
||||||
|
|
Loading…
Reference in New Issue