Browse Source

Pretty format json output.

Florian Lindner 2 months ago
parent
commit
c57abcfda6
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      borgmatic/commands/borgmatic.py

+ 1
- 1
borgmatic/commands/borgmatic.py View File

@@ -155,7 +155,7 @@ def _run_commands(args, consistency, local_path, location, remote_path, retentio
155 155
             unexpanded_repository,
156 156
         )
157 157
     if args.json:
158
-        sys.stdout.write(json.dumps(json_results))
158
+        sys.stdout.write(json.dumps(json_results, indent=2))
159 159
 
160 160
 
161 161
 def _run_commands_on_repository(

Loading…
Cancel
Save