import: Added --json-progress

Already supported --json, but not that.

Also checked all other commands that only support --json, and the only
other one that does transfers is fsck (--from), which it did not seem worth
adding --json-progress to really.
This commit is contained in:
Joey Hess 2020-05-26 11:27:47 -04:00
parent e283c28249
commit f7fe71602c
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
3 changed files with 6 additions and 1 deletions

View file

@ -1,6 +1,7 @@
git-annex (8.20200523) UNRELEASED; urgency=medium
* export: Added options for json output.
* import: Added --json-progress.
* addurl: Make --preserve-filename also apply when eg a torrent contains
multiple files.

View file

@ -38,7 +38,7 @@ import Control.Concurrent.STM
cmd :: Command
cmd = notBareRepo $
withGlobalOptions [jobsOption, jsonOptions, fileMatchingOptions] $
withGlobalOptions [jobsOption, jsonOptions, jsonProgressOption, fileMatchingOptions] $
command "import" SectionCommon
"add a tree of files to the repository"
(paramPaths ++ "|BRANCH[:SUBDIR]")

View file

@ -171,6 +171,10 @@ and `--reinject-duplicates` documentation below.
Enable JSON output. This is intended to be parsed by programs that use
git-annex. Each line of output is a JSON object.
* `--json-progress`
Include progress objects in JSON output.
* `--json-error-messages`
Messages that would normally be output to standard error are included in