Github user agrieve commented on a diff in the pull request: https://github.com/apache/cordova-lib/pull/166#discussion_r24875047 --- Diff: cordova-lib/src/cordova/plugin.js --- @@ -136,6 +135,35 @@ module.exports = function plugin(command, targets, opts) { events.emit('verbose', 'Calling plugman.fetch on plugin "' + target + '"'); return plugman.raw.fetch(target, pluginsDir, { searchpath: searchPath, noregistry: opts.noregistry, link: opts.link, pluginInfoProvider: pluginInfoProvider}); }) + .then(function(dir){ + // save to config.xml + + if(autosave || opts.save){ + var pluginInfo = pluginInfoProvider.get(dir); --- End diff -- Good chunk of code here. Would be appropriate for a helper method.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org