nci/lib/command/index.js
2014-12-03 00:21:07 +03:00

11 lines
201 B
JavaScript

'use strict';
var typesHash = {
'shell': require('./shell').ShellCommand
};
exports.createCommand = function(params) {
var Constructor = typesHash[params.type];
return new Constructor(params);
};