mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-06 12:57:46 +00:00
17 lines
330 B
JavaScript
Vendored
17 lines
330 B
JavaScript
Vendored
const { execFileSync } = require('node:child_process');
|
|
|
|
function exec(cmd, args, opts) {
|
|
console.log({ input: `${cmd} ${args.join(' ')}` });
|
|
const output = execFileSync(cmd, args, {
|
|
encoding: 'utf-8',
|
|
...opts,
|
|
}).trim();
|
|
console.log({ output });
|
|
console.log();
|
|
return output;
|
|
}
|
|
|
|
module.exports = {
|
|
exec,
|
|
};
|