git-annex/Messages
Joey Hess c208442292
unused: Support --json and --json-error-messages
Generalized AddJSONActionItemField to allow it to add several fields. Not entirely
happy with that, since the names of the fields have to be carefully chosen to
not conflict with other json fields. And fields added that way can't be parsed
back in FromJSON, except for the "fields" field that is special cased for metadata.
Still, I couldn't see another way to do it.

Also, omit file:null from the json output. Which does affect other commands,
eg git-annex whereis --all --json. Hopefully that won't break something that expects
a null file. If it did, that could be reverted, but it would be ugly to have
file:null in the unused --json

Sponsored-By: the NIH-funded NICEMAN (ReproNim TR&D3) project
2023-05-08 14:39:57 -04:00
..
Concurrent.hs generalize to allow running in Assistant monad 2020-12-04 13:07:30 -04:00
Internal.hs Revert "--json-exceptions" 2023-04-25 17:37:34 -04:00
JSON.hs unused: Support --json and --json-error-messages 2023-05-08 14:39:57 -04:00
Progress.hs filter out control characters and quote filenames 2023-04-11 14:27:22 -04:00
Serialized.hs Revert "--json-exceptions" 2023-04-25 17:37:34 -04:00