addurl: Support --json, particularly useful in --batch mode.
This commit is contained in:
parent
ecd0684bfc
commit
1d5b70db9c
4 changed files with 10 additions and 1 deletions
|
@ -41,7 +41,7 @@ import qualified Utility.Quvi as Quvi
|
|||
#endif
|
||||
|
||||
cmd :: Command
|
||||
cmd = notBareRepo $ withGlobalOptions [jobsOption] $
|
||||
cmd = notBareRepo $ withGlobalOptions [jobsOption, jsonOption] $
|
||||
command "addurl" SectionCommon "add urls to annex"
|
||||
(paramRepeating paramUrl) (seek <$$> optParser)
|
||||
|
||||
|
|
1
debian/changelog
vendored
1
debian/changelog
vendored
|
@ -34,6 +34,7 @@ git-annex (6.20151219) UNRELEASED; urgency=medium
|
|||
displays in this situation. Fixed by treating files git thinks are
|
||||
modified the same as typechanged files.
|
||||
* addurl: Added --batch and --with-files options.
|
||||
* addurl: Support --json, particularly useful in --batch mode.
|
||||
* Debian: Adjust build dependencies for webapp, DAV. Now available on
|
||||
mips, mipsel, but temporarily removed armel since build is failing
|
||||
there.
|
||||
|
|
|
@ -19,3 +19,6 @@ failed
|
|||
"""]]
|
||||
|
||||
[[!meta author=yoh]]
|
||||
|
||||
> I've made --json work for addurl; I feel that's the way to go for parsing
|
||||
> its output. [[done]] --[[Joey]]
|
||||
|
|
|
@ -83,6 +83,11 @@ be used to get better filenames.
|
|||
content if the file does not yet exist; the same as
|
||||
`git annex addurl $url --file $file`
|
||||
|
||||
* `--json`
|
||||
|
||||
Enable JSON output. This is intended to be parsed by programs that use
|
||||
git-annex. Each line of output is a JSON object.
|
||||
|
||||
# SEE ALSO
|
||||
|
||||
[[git-annex]](1)
|
||||
|
|
Loading…
Reference in a new issue