Skip to content

Commit

Permalink
POA-894 Fix default log format (#260)
Browse files Browse the repository at this point in the history
Fixes an annoyance introduced in #258.
Also accept 'colour' for log format.
  • Loading branch information
liujed authored Mar 9, 2024
1 parent 5da4d62 commit 29b27d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,10 @@ func preRun(cmd *cobra.Command, args []string) {
printer.SwitchToJSON()
case "plain":
printer.SwitchToPlain()
case "color":
case "color", "colour":
// No change needed
case "":
// Default to 'colour'.
default:
// Use color
printer.Warningln("Unknown log format, using `color`.")
Expand Down

0 comments on commit 29b27d7

Please sign in to comment.