exec-commands
v2.1.6
Published
exec-commands async
Downloads
9
Readme
import { execTaskAsync, execCommand } from 'exec-commands';
await execTaskAsync([{
command: "mkdir test-command", cwd: './', async: true, async callback(result) {
// execution failure remove file
if (!result) {
execCommand({
command: ` rm - rf ./test-command`,
cwd: './',
});
}
// This is the end of the command
return false;
},
}])