nci/lib/command/index.js

7 lines
150 B
JavaScript
Raw Normal View History

2014-12-02 21:21:07 +00:00
'use strict';
exports.createCommand = function(params) {
var Constructor = require('./' + params.type).Command;
2014-12-02 21:21:07 +00:00
return new Constructor(params);
};