summaryrefslogtreecommitdiff
path: root/cmd/util/cprint.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/util/cprint.go')
-rw-r--r--cmd/util/cprint.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/util/cprint.go b/cmd/util/cprint.go
index 61199c4a..5bf8a8ca 100644
--- a/cmd/util/cprint.go
+++ b/cmd/util/cprint.go
@@ -8,8 +8,8 @@ import (
)
var (
- reg *regexp.Regexp
- EnableColors bool
+ reg *regexp.Regexp
+ Colorize bool
)
func init() {
@@ -24,7 +24,7 @@ func Printf(format string, args ...interface{}) {
// Sprintf works identically to fmt.Sprintf but adds `<white+hb>color formatting support for CLI</reset>`.
func Sprintf(format string, args ...interface{}) string {
format = reg.ReplaceAllStringFunc(format, func(s string) string {
- if !EnableColors {
+ if !Colorize {
return ""
}