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:
parent
e283c28249
commit
f7fe71602c
3 changed files with 6 additions and 1 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -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]")
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue