uninit: Support --json and --json-error-messages
authorJoey Hess <joeyh@joeyh.name>
Thu, 11 May 2023 17:36:59 +0000 (13:36 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 11 May 2023 17:43:02 +0000 (13:43 -0400)
commit271f3b1ab4898cde593092405087b4d2e461c474
tree39619cd88cd19c9199ae98d6182fa6aed47d91bf
parent1904cebbb3d6100f76c0eefa490824532b00081f
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
CHANGELOG
CmdLine/GitAnnexShell/Checks.hs
Command.hs
Command/Uninit.hs
Types/Command.hs
doc/git-annex-uninit.mdwn
doc/todo/--json_for_unannex__and_ideally_any_other_command_.mdwn