Closed wagoodman closed 5 months ago
This adds a -o json option to the list command:
-o json
list
$ binny list -o json
{ "tools": [ { "name": "quill", "wantVersion": "v0.4.1", "resolvedVersion": "v0.4.1", "installedVersion": "v0.4.1", "constraint": "", "isInstalled": true, "hashIsValid": true }, { "name": "chronicle", "wantVersion": "v0.8.0", "resolvedVersion": "v0.8.0", "installedVersion": "v0.8.0", "constraint": "", "isInstalled": true, "hashIsValid": true }, { "name": "bouncer", "wantVersion": "v0.4.0", "resolvedVersion": "v0.4.0", "installedVersion": "v0.4.0", "constraint": "", "isInstalled": true, "hashIsValid": true }, { "name": "syft", "wantVersion": "v0.91.0", "resolvedVersion": "v0.91.0", "installedVersion": "v0.91.0", "constraint": "", "isInstalled": true, "hashIsValid": true } ] }
Additionally, like with some github gh commands you can use --jq to filter the output:
gh
--jq
$ binny list -o json --jq '.tools[].wantVersion' v0.4.1 v0.8.0 v0.4.0 v0.91.0
This adds a
-o json
option to thelist
command:Additionally, like with some github
gh
commands you can use--jq
to filter the output: