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:
parent
9788a514a0
commit
d67afa2e21
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue