From 45d15e12c256d1a0358bf801e00b626ea7dc6111 Mon Sep 17 00:00:00 2001 From: sophia Date: Mon, 12 Sep 2022 16:38:52 -0400 Subject: [PATCH] Support color in runner ui --- internal/runner/ui.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/runner/ui.go b/internal/runner/ui.go index 8ca8ca421..c3d84d319 100644 --- a/internal/runner/ui.go +++ b/internal/runner/ui.go @@ -54,7 +54,7 @@ func (u *runnerUI) ClearLine() { // arguments should be interpolations for the format string. After the // interpolations you may add Options. func (u *runnerUI) Output(msg string, raw ...interface{}) { - msg, style, disableNewline, _ := terminal.Interpret(msg, raw...) + msg, style, disableNewline, _, color := terminal.Interpret(msg, raw...) // Extreme java looking code alert! ev := &vagrant_server.RunnerJobStreamRequest{ @@ -67,6 +67,7 @@ func (u *runnerUI) Output(msg string, raw ...interface{}) { Msg: msg, Style: style, DisableNewLine: disableNewline, + Color: color, }, }, },