Add NO_COLOR support to NEWS (#835).

This commit is contained in:
Dan Helfman 2024-03-04 13:49:54 -08:00
parent 16bc0de3fb
commit 2f6ad9d173
2 changed files with 6 additions and 2 deletions

3
NEWS
View file

@ -4,6 +4,9 @@
interfere with JSON output.
* #829: Fix "--override" values containing deprecated section headers not actually overriding
configuration options under deprecated section headers.
* #835: Add support for the NO_COLOR environment variable. See the documentation for more
information:
https://torsion.org/borgmatic/docs/how-to/set-up-backups/#colored-output
* Clarify documentation about restoring a database: borgmatic does not create the database upon
restore.

View file

@ -406,8 +406,9 @@ source /usr/share/fish/vendor_completions.d/borgmatic.fish
borgmatic produces colored terminal output by default. It is disabled when a
non-interactive terminal is detected (like a cron job), or when you use the
`--json` flag. Otherwise, you can disable it by passing the `--no-color` flag,
setting the environment variables `PY_COLORS=False` or `NO_COLOR=True`, or setting the `color`
option to `false` in the `output` section of configuration.
setting the environment variables `PY_COLORS=False` or `NO_COLOR=True`, or
setting the `color` option to `false` in the `output` section of
configuration.
## Troubleshooting