-
Notifications
You must be signed in to change notification settings - Fork 286
Open
Description
It would be nice to have a parameter like --json
when listing or searching apps.
I have tried to parse the current output, which is not very difficult, but it can stop working at any time if the output format is changed.
This could help to create an API for automation.
For example, instead of:
mas list
424389933 Final Cut Pro (10.4.4)
409183694 Keynote (8.3)
409203825 Numbers (5.3)
409201541 Pages (7.3)
get something like:
mas list --json
[{"name":"Final Cut Pro","version":"10.4.4","id":424389933},{"name":"Keynote","version":"8.3","id":409183694},{"name":"Numbers","version":"5.3","id":409203825},{"name":"Pages","version":"7.3","id":409201541}]
[
{
"name": "Final Cut Pro",
"version": "10.4.4",
"id": 424389933
},
{
"name": "Keynote",
"version": "8.3",
"id": 409183694
},
{
"name": "Numbers",
"version": "5.3",
"id": 409203825
},
{
"name": "Pages",
"version": "7.3",
"id": 409201541
}
]
rgoldberg, shuuji3 and MrJarnould