const child_process = require("child_process"); function runCommand(cmd, args) { console.log(`blog: ${cmd} ${JSON.stringify(args)}`); child_process.execFileSync( cmd, args, { stdio: "inherit", timeout: 20000 } ); } function runCommandOutput(cmd, args, opts) { if (opts == null) opts = {}; if (!opts.silent) console.log(`blog: ${cmd} ${JSON.stringify(args)}`); return child_process.execFileSync( cmd, args, { timeout: 20000 } ); } module.exports = { runCommand, runCommandOutput, };