2
0
Эх сурвалжийг харах

Mentioning new --info --json option in NEWS.

Dan Helfman 7 жил өмнө
parent
commit
282e9565c9

+ 2 - 2
NEWS

@@ -2,8 +2,8 @@
  * Skip before/after backup hooks when only doing --prune, --check, --list, and/or --info.
  * #71: Support for XDG_CONFIG_HOME environment variable for specifying alternate user ~/.config/
    path.
- * #74: Support for Borg --list --json options via borgmatic command-line to list all archives in
-   JSON format, ideal for programmatic consumption.
+ * #74, #83: Support for Borg --json option via borgmatic command-line to --list archives or show
+   archive --info in JSON format, ideal for programmatic consumption.
  * #38, #76: Upgrade ruamel.yaml compatibility version range and fix support for Python 3.7.
  * #77: Skip non-"*.yaml" config filenames in /etc/borgmatic.d/ so as not to parse backup files,
    editor swap files, etc.

+ 1 - 1
borgmatic/borg/info.py

@@ -8,7 +8,7 @@ logger = logging.getLogger(__name__)
 
 
 def display_archives_info(
-        verbosity, repository, storage_config, local_path='borg', remote_path=None, json=False
+    verbosity, repository, storage_config, local_path='borg', remote_path=None, json=False
 ):
     '''
     Given a verbosity flag, a local or remote repository path, and a storage config dict,

+ 1 - 1
borgmatic/borg/list.py

@@ -8,7 +8,7 @@ logger = logging.getLogger(__name__)
 
 
 def list_archives(
-        verbosity, repository, storage_config, local_path='borg', remote_path=None, json=False
+    verbosity, repository, storage_config, local_path='borg', remote_path=None, json=False
 ):
     '''
     Given a verbosity flag, a local or remote repository path, and a storage config dict,