1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00

Add notes on NO_COLOR environment variable to the manual

This commit is contained in:
itchyny
2023-07-19 19:40:58 +09:00
committed by Nico Williams
parent 0615d4982c
commit f0306405c1
2 changed files with 3 additions and 1 deletions

2
jq.1.prebuilt generated
View File

@ -112,7 +112,7 @@ Use the given number of spaces (no more than 7) for indentation\.
\fB\-\-color\-output\fR / \fB\-C\fR and \fB\-\-monochrome\-output\fR / \fB\-M\fR:
.
.IP
By default, jq outputs colored JSON if writing to a terminal\. You can force it to produce color even if writing to a pipe or a file using \fB\-C\fR, and disable color with \fB\-M\fR\.
By default, jq outputs colored JSON if writing to a terminal\. You can force it to produce color even if writing to a pipe or a file using \fB\-C\fR, and disable color with \fB\-M\fR\. When the \fBNO_COLOR\fR environment variable is not empty, jq disables colored output by default, but you can enable it by \fB\-C\fR\.
.
.IP
Colors can be configured with the \fBJQ_COLORS\fR environment variable (see below)\.