Permalink
Cannot retrieve contributors at this time
16 lines (12 sloc)
479 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Various utilties exposed to plugins | |
require('./shell'); // Create the ShellJS instance (mandatory) | |
var common = require('./src/common'); | |
var exportedAttributes = [ | |
'error', // For signaling errors from within commands | |
'parseOptions', // For custom option parsing | |
'readFromPipe', // For commands with the .canReceivePipe attribute | |
'register', // For registering plugins | |
]; | |
exportedAttributes.forEach(function (attr) { | |
exports[attr] = common[attr]; | |
}); |