config-project-wcs
Version:
grab your projects 2 and 3 config files !
18 lines (13 loc) • 373 B
JavaScript
const { spawn } = require("child_process");
function runCommand(command, args, options = undefined) {
const spawned = spawn(command, args, options);
return new Promise((resolve) => {
spawned.stderr.on("data", (data) => {
console.error(data.toString());
});
spawned.on("close", () => {
resolve();
});
});
}
module.exports = runCommand;