fix: removed colorization on non-tty

Fixes a bug whereby `cheat` would apply ANSI colorization even when
outputting into a non-TTY.
This commit is contained in:
Chris Lane
2019-10-29 19:47:56 -04:00
parent 10af84dc10
commit 33ac3d34d1
242 changed files with 55375 additions and 13277 deletions

4
vendor/modules.txt vendored
View File

@@ -42,7 +42,7 @@ github.com/dlclark/regexp2/syntax
github.com/docopt/docopt-go
# github.com/mattn/go-colorable v0.0.9
github.com/mattn/go-colorable
# github.com/mattn/go-isatty v0.0.4
# github.com/mattn/go-isatty v0.0.10
github.com/mattn/go-isatty
# github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b
github.com/mgutz/ansi
@@ -50,7 +50,7 @@ github.com/mgutz/ansi
github.com/mitchellh/go-homedir
# github.com/tj/front v0.0.0-20170212063142-739be213b0a1
github.com/tj/front
# golang.org/x/sys v0.0.0-20181128092732-4ed8d59d0b35
# golang.org/x/sys v0.0.0-20191008105621-543471e840be
golang.org/x/sys/unix
# gopkg.in/yaml.v1 v1.0.0-20140924161607-9f9df34309c0
gopkg.in/yaml.v1