fromkey --json

* fromkey: Added --json.
* fromkey --batch output changed to support using it with --json.
  The old output was not parseable for any useful information, so
  this is not expected to break anything.
This commit is contained in:
Joey Hess 2019-02-05 14:03:29 -04:00
parent 7b46b43c48
commit b080699a95
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
5 changed files with 61 additions and 37 deletions

View file

@ -0,0 +1,17 @@
[[!comment format=mdwn
username="joey"
subject="""comment 1"""
date="2019-02-05T17:20:40Z"
content="""
Many commands do have an interface that works like that. For example
`git annex get --batch --json` has json output and does not stop when a get
fails.
So this comes down to specific behaviors of specific commands.
I've added --json to fromkey.
I don't think that setpresentkey can fail, unless there's a disk IO error
or something?
Any others?
"""]]