mirror of
https://github.com/Rushilwiz/spaceout.git
synced 2025-04-22 04:19:49 -04:00
17 lines
288 B
JavaScript
17 lines
288 B
JavaScript
const execa = require('execa');
|
|
|
|
async function runCommand(command, args = []) {
|
|
try {
|
|
await execa(command, args, {
|
|
stdio: 'inherit',
|
|
shell: true,
|
|
});
|
|
} catch (e) {
|
|
throw new Error(e);
|
|
}
|
|
}
|
|
|
|
module.exports = {
|
|
runCommand,
|
|
};
|