nabijaczleweli / cargo-update

A cargo subcommand for checking and applying updates to installed executables
MIT License
1.25k stars 41 forks source link

Allow for json output when running `cargo install-update -al` #157

Open mainrs opened 3 years ago

mainrs commented 3 years ago

Makes it easier to work with when calling from scripts. If you're OK with it I can open a PR, doesn't seem to be that difficult to implement.

nabijaczleweli commented 3 years ago

Sure, open a PR, though I'm not sure what you'll gain from JSON specifically that you can't get out of the current output at present

mainrs commented 3 years ago

It's just easier to parse JSON in other languages than it is to parse some arbitrary text columns. awk is fine for what but if I want to use Python to parse the output JSON is more reliable :)