forked from enviPath/enviPy
Current Dev State
This commit is contained in:
16
static/js/ketcher2/node_modules/shelljs/plugin.js
generated
vendored
Normal file
16
static/js/ketcher2/node_modules/shelljs/plugin.js
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
// 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];
|
||||
});
|
||||
Reference in New Issue
Block a user