diff options
| author | Paul Buetow <paul@buetow.org> | 2021-07-31 18:20:03 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2021-07-31 18:20:03 +0300 |
| commit | f46abf36e80a67d13d12dbe4ba8c899026e53961 (patch) | |
| tree | 46b4577f8b26082d0bebed931b8cc5f5f66d1c0f /internal/version/version.go | |
| parent | 8a84f9a9f3b48a894ea4e6227d879e701817b883 (diff) | |
more on configurable colors
Diffstat (limited to 'internal/version/version.go')
| -rw-r--r-- | internal/version/version.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/version/version.go b/internal/version/version.go index c0f349c..7c206b4 100644 --- a/internal/version/version.go +++ b/internal/version/version.go @@ -5,6 +5,7 @@ import ( "os" "github.com/mimecast/dtail/internal/color" + "github.com/mimecast/dtail/internal/config" ) const ( @@ -25,7 +26,7 @@ func String() string { // PaintedString is a prettier string representation of the DTail version. func PaintedString() string { - if !color.Colored { + if !config.Client.TermColorsEnabled { return String() } name := color.Paint(color.Yellow, Name) |
