Skip to content

Commit

Permalink
DXCDT-330: Colorize JSON output by default (#614)
Browse files Browse the repository at this point in the history
Colorize JSON output by default
  • Loading branch information
sergiught authored Jan 18, 2023
1 parent 387b00f commit 9df2719
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/display/display.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func (r *Renderer) JSONResult(data interface{}) {
r.Errorf("couldn't marshal results as JSON: %v", err)
return
}
r.Output(string(b))
r.Output(ansi.ColorizeJSON(string(b), false))
}

func (r *Renderer) Results(data []View) {
Expand Down

0 comments on commit 9df2719

Please sign in to comment.