Bladeren bron

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

Dan Helfman 2 maanden geleden
bovenliggende
commit
828ada085b
1 gewijzigde bestanden met toevoegingen van 7 en 3 verwijderingen
  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