diff options
author | Wolfy-J <[email protected]> | 2019-02-14 15:09:18 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2019-02-14 15:09:18 +0300 |
commit | 94467726eb2f63d9ab991c01f1d553ebf2c0a77b (patch) | |
tree | 670f84352dadae7f7f1e66d664e32bc663dd6b0b /cmd/util | |
parent | 77cb14cd7d6b0773b20065e8e5a3f95d1c5c96f8 (diff) |
CS
Diffstat (limited to 'cmd/util')
-rw-r--r-- | cmd/util/cprint.go | 6 |
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 "" } |