copy, move, mirror: Support --json and --json-progress.

This commit is contained in:
Joey Hess 2016-09-09 16:24:26 -04:00
parent c277a21ece
commit 3e22d60549
No known key found for this signature in database
GPG key ID: C910D9222512E3C7
8 changed files with 36 additions and 4 deletions

View file

@ -72,6 +72,15 @@ Copies the content of files from or to another remote.
The [[git-annex-matching-options]](1)
can be used to specify files to copy.
* `--json`
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.
# SEE ALSO
[[git-annex]](1)

View file

@ -66,6 +66,15 @@ contents. Use [[git-annex-sync]](1) for that.
The [[git-annex-matching-options]](1)
can be used to specify files to mirror.
* `--json`
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.
# SEE ALSO
[[git-annex]](1)

View file

@ -55,6 +55,15 @@ Moves the content of files from or to another remote.
The [[git-annex-matching-options]](1)
can be used to specify files to move.
* `--json`
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.
# SEE ALSO
[[git-annex]](1)

View file

@ -12,4 +12,8 @@ Related:
> relay the progress messages when datalad is doing a nested retrieval, I
> suppose.) --[[Joey]]
>> [[done]]; --json-progress implemented. --[[Joey]]
>> [[done]]; --json-progress implemented. I limited the frequency of json
>> progress items to 10 per second max, and it's typically only 1 per
>> second or less, so didn't implement
>> --json-progress=N to tune it. Also added --json and --json-progress to
>> copy, move, mirror commands. --[[Joey]]