serpent-os / moss

The safe, fast and sane package manager for Linux
https://serpentos.com
71 stars 9 forks source link

moss: Support passing `--format=json` or similar to `moss inspect` #234

Open ermo opened 1 month ago

ermo commented 1 month ago

Context

For CI purposes, we need to be able to parse the binary manifest files via Python. Rather than teaching Python to parse moss-format, why not just enable moss inspect to output inspect fields in a format (JSON) that Python already understands?

This will also enable us to experiment with pipelines using jq for instance.