Seems to me that:

    cordova run ios

should do just that. If the platform has not been added, I'd suggest that it fail with an informative message that could include the command to run to resolve the problem (similar to Git bash). At this level, deducing the user's intentions has the potential to get messy in a hurry both in the code and for the user.

-Terence Bandoian


On 1/9/2015 12:47 PM, Michal Mocny wrote:
I'd like to have cordova-cli automatically install missing platforms when
it is obvious that the platform is required.  i.e.:

cordova create Foo && cd Foo
cordova run ios
..should just `cordova platform add ios` automatically.

It appears that this was already added to phonegap-cli.  Would Adobe mind
donating this to cordova-cli, or is it different enough for me to just
start from scratch?  Should be easy, but don't want to duplicate effort.

Filed: https://issues.apache.org/jira/browse/CB-8283

-Michal



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org
For additional commands, e-mail: dev-h...@cordova.apache.org

Reply via email to