瀏覽代碼

Add a deprecated, top-level "color" option back in for backwards compatibility.

Dan Helfman 6 月之前
父節點
當前提交
828ada085b
共有 1 個文件被更改,包括 7 次插入3 次删除
  1. 7 3
      borgmatic/config/schema.yaml

+ 7 - 3
borgmatic/config/schema.yaml

@@ -810,6 +810,12 @@ properties:
             Restrict the number of checked archives to the last n. Applies only
             Restrict the number of checked archives to the last n. Applies only
             to the "archives" check. Defaults to checking all archives.
             to the "archives" check. Defaults to checking all archives.
         example: 3
         example: 3
+    color:
+        type: boolean
+        description: |
+            Deprecated. Use "color" under "logging:" and "console:" instead.
+            Apply color to console output. Defaults to true.
+        example: false
     logging:
     logging:
         type: object
         type: object
         additionalProperties: false
         additionalProperties: false
@@ -835,8 +841,7 @@ properties:
                     color:
                     color:
                         type: boolean
                         type: boolean
                         description: |
                         description: |
-                            Apply color to console output. Can be overridden with --no-color
-                            command-line flag. Defaults to true.
+                            Apply color to console output. Defaults to true.
                         example: false
                         example: false
             syslog:
             syslog:
                 type: object
                 type: object
@@ -886,7 +891,6 @@ properties:
                             Python format string used for log messages written
                             Python format string used for log messages written
                             to the log file.
                             to the log file.
                         example: "%(asctime)s %(message)s"
                         example: "%(asctime)s %(message)s"
-                            
             monitoring:
             monitoring:
                 type: object
                 type: object
                 additionalProperties: false
                 additionalProperties: false