This commit is contained in:
Alex Dadgar
2018-03-21 11:18:26 -07:00
parent d39b13ed58
commit 148a9504e7
4 changed files with 61 additions and 4 deletions

View File

@@ -9,6 +9,11 @@ import (
"github.com/mitchellh/cli"
)
const (
// EnvNomadCLINoColor is an env var that toggles colored UI output.
EnvNomadCLINoColor = `NOMAD_CLI_NO_COLOR`
)
// DeprecatedCommand is a command that wraps an existing command and prints a
// deprecation notice and points the user to the new command. Deprecated
// commands are always hidden from help output.

View File

@@ -181,7 +181,8 @@ func generalOptionsUsage() string {
Defaults to the "default" namespace.
-no-color
Disables colored command output.
Disables colored command output. Alternatively, NOMAD_CLI_NO_COLOR may be
set.
-ca-cert=<path>
Path to a PEM encoded CA cert file to use to verify the