Skip to content

Commit

Permalink
remove spm plugin spmjs#902
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Aug 14, 2014
1 parent 8db44ab commit 1a418d6
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 157 deletions.
28 changes: 0 additions & 28 deletions bin/spm
Expand Up @@ -6,7 +6,6 @@ var commander = require('commander');
require('colorful').colorful();
var run = require('../lib/utils/run');
var log = require('../lib/utils/log');
var plugin = require('../lib/plugin');
var program = require('../lib/utils/program');
var spawn = require('win-spawn');

Expand Down Expand Up @@ -74,7 +73,6 @@ var packageCommands = {
commander.on('--help', function() {
console.log(' ' + 'System Commands:'.to.bold.magenta.color);
console.log();
program.printHelp(new program('plugin', 'plugin system for spm'));
program.printHelp(new program('config', 'configuration for spm'));
program.printHelp(new program('help', 'show help information'));
console.log();
Expand All @@ -85,16 +83,6 @@ commander.on('--help', function() {
program.printHelp(new program(key, packageCommands[key]));
});
console.log();

var extensions = plugin.plugins();
if (extensions.length) {
console.log(' ' + 'Plugin Commands:'.to.bold.blue.color);
console.log();
extensions.forEach(function(cmd) {
program.printHelp(cmd);
});
console.log();
}
});

commander.parse(process.argv);
Expand Down Expand Up @@ -142,17 +130,6 @@ function executable(subcmd) {

var commands = Object.keys(packageCommands);

var extensions = plugin.plugins();
for (var i = 0; i < extensions.length; i++) {
var cmd = extensions[i];

if (subcmd === cmd.name) {
return cmd.binary;
}

commands.push(cmd.name);
}

function printSimilar() {
// guess commands
commands = getSimilarCommands(subcmd, commands);
Expand All @@ -166,11 +143,6 @@ function executable(subcmd) {
console.log(' $', 'spm'.to.magenta.color, cmd.to.cyan.color);
});
}
console.log();
console.log(' It is not a built-in command, maybe it\'s a plugin.');
console.log(' Try install this plugin: ');
console.log();
console.log(' $', 'spm plugin'.to.magenta.color, 'install', subcmd.to.cyan.color);
}

try {
Expand Down
53 changes: 0 additions & 53 deletions bin/spm-plugin

This file was deleted.

1 change: 0 additions & 1 deletion index.js
Expand Up @@ -5,7 +5,6 @@ exports = module.exports;
exports.version = require('./package').version;

exports.client = require('./lib/client');
exports.plugin = require('./lib/plugin');
exports.config = require('./lib/config');
exports.upload = require('./lib/upload');
exports.build = require('./lib/build');
Expand Down
75 changes: 0 additions & 75 deletions lib/plugin.js

This file was deleted.

0 comments on commit 1a418d6

Please sign in to comment.