瀏覽代碼

Add NO_COLOR support to NEWS (#835).

Dan Helfman 1 年之前
父節點
當前提交
2f6ad9d173
共有 2 個文件被更改,包括 6 次插入2 次删除
  1. 3 0
      NEWS
  2. 3 2
      docs/how-to/set-up-backups.md

+ 3 - 0
NEWS

@@ -4,6 +4,9 @@
    interfere with JSON output.
    interfere with JSON output.
  * #829: Fix "--override" values containing deprecated section headers not actually overriding
  * #829: Fix "--override" values containing deprecated section headers not actually overriding
    configuration options under deprecated section headers.
    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
  * Clarify documentation about restoring a database: borgmatic does not create the database upon
    restore.
    restore.
 
 

+ 3 - 2
docs/how-to/set-up-backups.md

@@ -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
 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
 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,
 `--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
 ## Troubleshooting