docs/help: -no-color does not apply to alloc logs content

The `nomad alloc logs` command does not remove terminal escape sequences for
color from the log outputs of a task. Clarify that the standard `-no-color`
flag, which does apply to Nomad's error responses from `nomad alloc logs`,
does not apply to the log output.
This commit is contained in:
Tim Gross 2020-11-19 13:23:28 -05:00
parent 9788a514a0
commit d67afa2e21
2 changed files with 10 additions and 1 deletions

View File

@ -55,7 +55,12 @@ Logs Specific Options:
-c
Sets the tail location in number of bytes relative to the end of the logs.
`
Note that the -no-color option applies to Nomad's own output. If the task's
logs include terminal escape sequences for color codes, Nomad will not
remove them.
`
return strings.TrimSpace(helpText)
}

View File

@ -48,6 +48,10 @@ the given job will be chosen.
- `-c`: Sets the tail location in number of bytes relative to the end of the
logs.
Note that the `-no-color` option applies to Nomad's own output. If the task's
logs include terminal escape sequences for color codes, Nomad will not remove
them.
## Examples
```shell-session