Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module.exports = function(exec, data) {
- return function() {
- var moduleNameIndex = process.argv.indexOf('--module');
- var editorIndex = process.argv.indexOf('--editor');
- if(typeof moduleNameIndex === 'number') {
- var moduleName = process.argv[moduleNameIndex + 1];
- var editorName = process.argv[editorIndex + 1];
- var module = data.main.modules[moduleName];
- for(var fileIndex in module) {
- exec(String.prototype.concat(
- editorName, ' ', module[fileIndex]
- ));
- }
- }
- };
- };
Add Comment
Please, Sign In to add comment