Skip to content
Permalink
Browse files
Remove commands from CLI that do not exist in the lib anymore
  • Loading branch information
raphinesse committed Mar 31, 2019
1 parent a69657a commit 192358c9752acd406d60881f920d9cd65d2274c2
Showing 1 changed file with 0 additions and 33 deletions.
@@ -22,15 +22,6 @@
const { plugman } = require('cordova-lib');

module.exports = {
'config': function (cli_opts) {
plugman.config(cli_opts.argv.remain, function (err) {
if (err) throw err;
else console.log('done');
});
},
'owner': function (cli_opts) {
plugman.owner(cli_opts.argv.remain);
},
'install': function (cli_opts) {
if (!cli_opts.platform || !cli_opts.project || !cli_opts.plugin) {
return console.log(plugman.help());
@@ -83,30 +74,6 @@ module.exports = {

return p;
},
'search': function (cli_opts) {
plugman.search(cli_opts.argv.remain, function (err, plugins) {
if (err) throw err;
else {
for (var plugin in plugins) {
console.log(plugins[plugin].name, '-', plugins[plugin].description || 'no description provided');
}
}
});
},
'info': function (cli_opts) {
plugman.info(cli_opts.argv.remain, function (err, plugin_info) {
if (err) throw err;
else {
console.log('name:', plugin_info.name);
console.log('version:', plugin_info.version);
if (plugin_info.engines) {
for (var i = 0, j = plugin_info.engines.length; i < j; i++) {
console.log(plugin_info.engines[i].name, 'version:', plugin_info.engines[i].version);
}
}
}
});
},
'create': function (cli_opts) {
if (!cli_opts.name || !cli_opts.plugin_id || !cli_opts.plugin_version) {
return console.log(plugman.help());

0 comments on commit 192358c

Please sign in to comment.