Re: Automatically installing missing platforms from cli

2015-01-15 Thread Andrew Grieve
Terence - reading your email it's not clear to me what you're in favour of. Enforce explicit command for creating platform == simplicity, or "cordova run android" adding platform if not present == simplicity? On Thu, Jan 15, 2015 at 12:24 PM, Terence M. Bandoian wrote: > For users, particularl

Re: Automatically installing missing platforms from cli

2015-01-15 Thread Terence M. Bandoian
For users, particularly those that don't use Cordova every day, I'd prefer a straightforward set of primitives with minimal side effects that don't require recollection of much beyond the names of the primitives. From a development standpoint, my impression is that Cordova is already complex e

Re: Automatically installing missing platforms from cli

2015-01-12 Thread Jesse
This is becoming too much discussion for this feature. Andrew, I agree that the consequence of a magical git command is potentially much worse than accidentally adding a cordova platform. The only downside I see is if you pay for network data. My criteria for choosing a feature includes evaluatin

Re: Automatically installing missing platforms from cli

2015-01-12 Thread Josh Soref
Michael Brooks wrote: >By the sounds of it, the Cordova team is not in agreement on whether we >should auto-add platforms with the Cordova CLI. Seems like a reasonable summary >My two cents is: Fil Maj and I created the Cordova CLI to be an explicit >CLI tool that produced parseable output for pr

Re: Automatically installing missing platforms from cli

2015-01-12 Thread Michael Brooks
By the sounds of it, the Cordova team is not in agreement on whether we should auto-add platforms with the Cordova CLI. My two cents is: Fil Maj and I created the Cordova CLI to be an explicit CLI tool that produced parseable output for programmatic consumption. It's a tool for distributions to us

Re: Automatically installing missing platforms from cli

2015-01-12 Thread Andrew Grieve
On Sun, Jan 11, 2015 at 11:40 PM, Terence M. Bandoian wrote: > Creating directories and downloading and installing files is a lot of > "magic" that may not be desired. Here's another Git example: > Compiling on android downloads & creates a bunch of files, but it is what you want it to do. When

Re: Automatically installing missing platforms from cli

2015-01-11 Thread Josh Soref
Terence‎ wrote: >‎ On a related note, is there a diagram somewhere of all the cordova-cli  > commands and their associated options? I'm not sure what a diagram would look like, but cordova help / cordova help verb should cover most needs.  smime.p7s Description: S/MIME cryptographic signature

Re: Automatically installing missing platforms from cli

2015-01-11 Thread Terence M. Bandoian
Creating directories and downloading and installing files is a lot of "magic" that may not be desired. Here's another Git example: $ git commit -m "commit test." On branch development Changes not staged for commit: modified: html/data/topics.json modified: html/topics.html n

Re: Automatically installing missing platforms from cli

2015-01-10 Thread Andrew Grieve
"cordova run" already builds before running (unless you add --nobuild). I think it'd be pretty annoying if we had run fail with a "you need to build first" kind of message. In my mind, cordova-cli's purpose is to add magic. Otherwise, you would just use plugman+platform scripts (and yes, some peop

Re: Automatically installing missing platforms from cli

2015-01-09 Thread Jesse
what does `cordova run ios` do in windows? or: `cordova run wp8` in mac? Note that recent changes allow you to `platform add ios` in windows, but run will always be an error. Personally, I am with Terrance on this. Magic should be used very carefully. -- $ git on up git: 'on' is not a

Re: Automatically installing missing platforms from cli

2015-01-09 Thread Jay Proulx
I still think the solution is to get cordova to carry the load, any required tasks should be performed automatically, just like building a missing platform :) Jay Proulx | computer scientist | aem engineering | office: 613.940.4052 | mobile: 613 866 0732 | adobe systems On 2015-01-09, 2:29 PM,

Re: Automatically installing missing platforms from cli

2015-01-09 Thread Michal Mocny
Thanks Michael! Thats appreciated. Jay, I think a combination of cordova-browser + the save/restore work is the answer for you. On Fri, Jan 9, 2015 at 2:13 PM, Michael Brooks wrote: > Hey Michal, > > I'd be happy to add this feature to the cordova-cli! It's a feature that > I've wanted since d

Re: Automatically installing missing platforms from cli

2015-01-09 Thread Michael Brooks
Hey Michal, I'd be happy to add this feature to the cordova-cli! It's a feature that I've wanted since day 1, which is why it was added the phonegap-cli at the very beginning. And by donating the implementation to the cordova-cli, it will remove a lot of work-around logic from the phonegap-cli. Si

Re: Automatically installing missing platforms from cli

2015-01-09 Thread Jay Proulx
+1 to this and anything required to run the application. Without plugins cordova projects could simply run in Safari, so if copying icons, splash screens, creating platforms, and installing plugins are required to actually compile and run the application then they should all happen automatically.