init: cleanup json print code

This commit is contained in:
Michael Eischer
2022-10-21 22:32:11 +02:00
parent 933c9af328
commit 9a9f559806
2 changed files with 11 additions and 21 deletions

View File

@@ -1,7 +1,7 @@
Enhancement: Enable support for json output on init command
Init command did not listen to the --json flag, it now outputs a struct depending on a successful or failed creation of a repository, with all relevant information
Enhancement: Support json output for the `init` command
The `init` command ignored the `--json` flag. It now outputs a JSON message if
the repository was created successfully.
https://github.com/restic/restic/issues/3124
https://github.com/restic/restic/pull/3132