提交 64105b49 编写于 作者: S Steven Powell

Added out.Styled func

上级 f8b6cd34
......@@ -84,12 +84,22 @@ func Step(st style.Enum, format string, a ...V) {
Infof(format, a...)
return
}
outStyled, spinner := stylized(st, useColor, format, a...)
outStyled, _ := stylized(st, useColor, format, a...)
if JSON {
register.PrintStep(outStyled)
return
}
register.RecordStep(outStyled)
Styled(st, format, a...)
}
// Styled writes a stylized and templated message to stdout
func Styled(st style.Enum, format string, a ...V) {
if st == style.Option {
Infof(format, a...)
return
}
outStyled, spinner := stylized(st, useColor, format, a...)
if spinner {
spinnerString(outStyled)
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册