diff options
| author | Paul Buetow <paul@buetow.org> | 2021-09-18 14:41:25 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2021-10-02 12:26:29 +0300 |
| commit | 6506e20f6c80f4acb7434eb9dd14f784a67189cd (patch) | |
| tree | 1554831a5468729aa48c0baf3d5c9a78a8499288 /internal/config | |
| parent | 7fbea88cf55af9b3354b4a1334e49c38d0d920fc (diff) | |
add spartan mode
Diffstat (limited to 'internal/config')
| -rw-r--r-- | internal/config/read.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/config/read.go b/internal/config/read.go index a4e605b..ea358f8 100644 --- a/internal/config/read.go +++ b/internal/config/read.go @@ -5,7 +5,7 @@ import ( ) // Read the DTail configuration. -func Read(configFile string, sshPort int) { +func Read(configFile string, sshPort int, noColor bool) { initializer := configInitializer{ Common: newDefaultCommonConfig(), Server: newDefaultServerConfig(), @@ -34,4 +34,7 @@ func Read(configFile string, sshPort int) { if sshPort != 2222 { Common.SSHPort = sshPort } + if noColor { + Client.TermColorsEnable = false + } } |
