Support color in runner ui

This commit is contained in:
sophia 2022-09-12 16:38:52 -04:00
parent e96738bf43
commit 45d15e12c2

View File

@ -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,
},
},
},