Skip to content

Commit

Permalink
Made EnableColor function private.
Browse files Browse the repository at this point in the history
  • Loading branch information
springcomp committed Mar 21, 2023
1 parent ba0cbd4 commit 3a47c8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jp.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ func runMain(c *cli.Context) int {
// colors.
switch c.String("color") {
case "always":
EnableColor(true)
enableColor(true)
case "auto":
// this is the default in the library
case "never":
EnableColor(false)
enableColor(false)
default:
return errMsg("Invalid color specification. Must use always/auto/never")
}
Expand Down Expand Up @@ -149,7 +149,7 @@ func runMain(c *cli.Context) int {
return 0
}

func EnableColor(enabled bool) {
func enableColor(enabled bool) {

if enabled {
jsoncolor.DefaultArrayColor.EnableColor()
Expand Down

0 comments on commit 3a47c8d

Please sign in to comment.