Re: CLI: suggested change to "platform ls" command

2013-07-01 Thread Filip Maj
Here's another take that, after discussing with Mike Brooks about, makes more sense: introducing a `supports` API, something like: cordova platform supports android AND cordova supports android Both would invoke the same thing: essentially shelling out to ./bin/check_reqs for each platform. Fro

Re: CLI: suggested change to "platform ls" command

2013-06-19 Thread Michal Mocny
Great idea to expand the output. I do prefer the explicit `ls` and would rather have the default be --help. Given that, `ls` is harmless, so I don't much mind. On Tue, Jun 18, 2013 at 1:36 PM, Michael Brooks wrote: > I think [1] is up to the command patterns that cordova-cli uses. As far as >

Re: CLI: suggested change to "platform ls" command

2013-06-18 Thread Michael Brooks
I think [1] is up to the command patterns that cordova-cli uses. As far as I know, it doesn't use any other shortcuted commands. "ls" is not a highly used command, so a shortcut isn't necessary. I think [2] make sense to implement. Michael On Tue, Jun 18, 2013 at 10:14 AM, Filip Maj wrote: >

CLI: suggested change to "platform ls" command

2013-06-18 Thread Filip Maj
I had two issues submitted recently, for suggestions to tweaking that particular command/api: [1]: remove the explicit "ls" command [2]: have "platform(s)" by itself be the ls command, and expand on what it returns. Not only the currently-installed platforms for a project, but also which platforms