Automatic restore could just happen on prepare. We do this for CCA and its worked very well. It would not directly affect the `cordova run not-yet-added-platform` feature.
-Michal On Fri, Jan 9, 2015 at 2:26 PM, Josh Soref <jso...@blackberry.com> wrote: > Leo wrote: > >I had asked some questions about save and restore a while back > > >One of my biggest questions was why would these commands be an option? > > I can't think of any reasons. > > > What I'm looking for, as soon as possible, is that Cordova 'project' > >metadata is stored logically and consistently so that the CLI and > >multiple IDEs could simultaneously work on the same project and know > >about what each other have done wrt. adding/removing > >plugins/platforms/etc. > > Seems reasonable > > >Does removing experimental advance that goal or does it, as Michal says, > >put obstacles in the path of getting there by requiring long term support > >of an incomplete and possibly confusing (more options?) solution? > > I think Michal is right. > > It probably makes more sense to integrate the code behind save/restore > into (platform|plugin) add and (something) so that it automatically just > works. > > I'm not sure offhand what 'restore' would look like in a such a model > though… > Also worth considering is the recent request for `cordova run > not-installed-platform` > > `cordova run not-installed-platform` (CB-8283) should honor the values > from `cordova platform save` > > That might be the replacement for 'restore', although it probably isn't > ideal... >