wp-vip-cli-custom-seed
Version:
VIP CLI CUSTOM SEEDER FOR Automation
21 lines (18 loc) • 380 B
JavaScript
const shell = require('shelljs');
const exec = ( cmd ) => new Promise((resolve) => {
shell.exec(cmd, {
async: true,
silent: true,
}, (code, stdout, stderr) => {
resolve({ code, stdout, stderr });
});
});
module.exports = {
exec,
cli: (command) => exec(
`${command}`,
),
wpvipcli: (command) => exec(
`./node_modules/.bin/vip ${command}`,
),
}