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 /cmd/dgrep | |
| parent | 8a84f9a9f3b48a894ea4e6227d879e701817b883 (diff) | |
more on configurable colors
Diffstat (limited to 'cmd/dgrep')
| -rw-r--r-- | cmd/dgrep/main.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/dgrep/main.go b/cmd/dgrep/main.go index 4da1bb3..422bdd4 100644 --- a/cmd/dgrep/main.go +++ b/cmd/dgrep/main.go @@ -6,7 +6,6 @@ import ( "os" "github.com/mimecast/dtail/internal/clients" - "github.com/mimecast/dtail/internal/color" "github.com/mimecast/dtail/internal/config" "github.com/mimecast/dtail/internal/io/logger" "github.com/mimecast/dtail/internal/io/signal" @@ -46,7 +45,9 @@ func main() { flag.Parse() config.Read(cfgFile, sshPort) - color.Colored = !noColor + if noColor { + config.Client.TermColorsEnabled = false + } if displayVersion { version.PrintAndExit() |
