Not 100% sure this is what you are asking for, but: For cca we have a CLI command to check that environment is set up correct, and then checks which of Android/iOS are installed correctly (cca checkenv): https://github.com/MobileChromeApps/mobile-chrome-apps/blob/master/src/cca.js#L299
This is run *before* you create a new project, and we use it as a signal to know which platforms to add (we chose to add every platform that can be added, automatically). Perhaps this is what you are trying to do with your yeoman generator? Test which platforms are set up correct on the machine and automatically generate a project that adds them? I think this is something we would be happy to move directly into cordova-cli if other projects want it too (we would have to add checks for the other platform targets too). -Michal On Tue, Mar 4, 2014 at 11:41 AM, Brian LeRoux <b...@brian.io> wrote: > A few questions: > > - Why do you "need to use Yeoman"? > - What is the use case for the OS / Platform mapping that the Cordova CLI > needs to fulfill? > > > On Tue, Mar 4, 2014 at 7:47 AM, Mike Haas <mikehaas...@gmail.com> wrote: > > > This stems from my need to hit the cordova-cli api. I need to use a > yeoman > > generator to scaffold out a cordova project. > > > > I would like to expose a "smart list" of available platforms dependent on > > the current OS being used. Much like what's done here: > > https://github.com/apache/cordova-cli/blob/master/src/platform.js#L180. > > > > However, I do not want it to be filtered based on what platforms are > > already installed from the current cordova project directory. Especially > > since I won't be running it from a cordova project that exists at this > > point (maybe this is my underlying problem). > > > > Would a PR that exposed this be welcome? > > >