hygen
Version:
The scalable code generator that saves you time.
25 lines (17 loc) • 398 B
JavaScript
const resolve = attributes => {
const ops = [];
if (attributes.to && !attributes.inject) {
const add = require('./add');
ops.push(add);
}
if (attributes.to && attributes.inject) {
const inject = require('./inject');
ops.push(inject);
}
if (attributes.sh) {
const shell = require('./shell');
ops.push(shell);
}
return ops;
};
module.exports = resolve;