uninit: Support --json and --json-error-messages
Had to convert uninit to do everything that can error out inside a CommandStart. This was harder than feels nice. (Also, in passing, converted CommandCheck to use a data type, not a weird number that it was not clear how it managed to be unique.) Sponsored-By: the NIH-funded NICEMAN (ReproNim TR&D3) project
This commit is contained in:
parent
1904cebbb3
commit
271f3b1ab4
7 changed files with 128 additions and 77 deletions
|
@ -42,12 +42,10 @@ These commands have been updated to support --json:
|
|||
* git-annex-initremote
|
||||
* git-annex-enableremote
|
||||
* git-annex-configremote
|
||||
* git-annex-uninit
|
||||
|
||||
These commands could support json, but I punted:
|
||||
|
||||
* git-annex-uninit (hard to support --json-error-messages because it does
|
||||
pre-check and post-unannex things that are not usual actions and so would
|
||||
not show as json objects without more work)
|
||||
* git-annex-version (--raw already exists, and the output is fairly machine
|
||||
parseable already. It would be possible to jsonize the output to make it
|
||||
possibly more machine parseable. But I'm doubtful that would be useful.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue