SubconsciousCompute / meta-package-manager

A meta package manager for interfacing with multiple distro/platform specific package managers.
GNU Affero General Public License v3.0
3 stars 2 forks source link

Support json output #21

Closed dilawar closed 7 months ago

dilawar commented 7 months ago

Add a global option --json.

If passed, all output must be in JSON format.

VoltaireNoir commented 7 months ago

@dilawar this is only for listing and searching packages, right?

dilawar commented 7 months ago

Yes. Essentially, any command whose output can be consumed by some other program should also emit JSON. If a command is only for human consumption then we don't have to support JSON output for that.