rmurl: Support --json and --json-error-messages

The json does not include an url field, but it does have an input field that is
"file url" when using --batch and ["file", "url"] when using the command line.
I chose not to change that because it would complicate batchInput.
An url field could be added if it turns out to be useful.

Sponsored-By: the NIH-funded NICEMAN (ReproNim TR&D3) project
This commit is contained in:
Joey Hess 2023-05-04 11:28:27 -04:00
parent 563d6dcf62
commit c235488e2d
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
4 changed files with 13 additions and 3 deletions

View file

@ -12,7 +12,7 @@ import Logs.Web
import Annex.WorkTree
cmd :: Command
cmd = notBareRepo $
cmd = notBareRepo $ withAnnexOptions [jsonOptions] $
command "rmurl" SectionCommon
"record file is not available at url"
(paramRepeating (paramPair paramFile paramUrl))