Remove emojis from json output
parent
f68716e2da
commit
dd60fa85cc
|
@ -69,12 +69,12 @@ type V map[string]interface{}
|
|||
|
||||
// T writes a stylized and templated message to stdout
|
||||
func T(style StyleEnum, format string, a ...V) {
|
||||
outStyled := ApplyTemplateFormatting(style, useColor, format, a...)
|
||||
outStyled := ApplyTemplateFormatting(0, useColor, format, a...)
|
||||
if JSON {
|
||||
register.PrintStep(outStyled)
|
||||
} else {
|
||||
String(outStyled)
|
||||
return
|
||||
}
|
||||
String(outStyled)
|
||||
}
|
||||
|
||||
// String writes a basic formatted string to stdout
|
||||
|
|
|
@ -155,7 +155,7 @@ func applyStyle(style StyleEnum, useColor bool, format string) string {
|
|||
}
|
||||
|
||||
// Similar to CSS styles, if no style matches, output an unformatted string.
|
||||
if !ok {
|
||||
if !ok || JSON {
|
||||
return format
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue