From c57abcfda6ab89aefb823672d4079e1c3f47ac08 Mon Sep 17 00:00:00 2001 From: Florian Lindner Date: Sun, 30 Sep 2018 11:11:31 +0200 Subject: [PATCH] Pretty format json output. --- borgmatic/commands/borgmatic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/borgmatic/commands/borgmatic.py b/borgmatic/commands/borgmatic.py index 919ce117..b44c37ce 100644 --- a/borgmatic/commands/borgmatic.py +++ b/borgmatic/commands/borgmatic.py @@ -155,7 +155,7 @@ def _run_commands(args, consistency, local_path, location, remote_path, retentio unexpanded_repository, ) if args.json: - sys.stdout.write(json.dumps(json_results)) + sys.stdout.write(json.dumps(json_results, indent=2)) def _run_commands_on_repository(