* Spawns a shell executing the given command. * @param {string} command * @param {{ * cmd?: string; * env?: Record ; * encoding?: string; * shell?: string; * signal?: AbortSignal; * timeout?: number; * maxBuffer?: number; * killSignal?: string | number; *
(command, options, callback)
| 232 | * @returns {ChildProcess} |
| 233 | */ |
| 234 | function exec(command, options, callback) { |
| 235 | const opts = normalizeExecArgs(command, options, callback); |
| 236 | return module.exports.execFile(opts.file, |
| 237 | opts.options, |
| 238 | opts.callback); |
| 239 | } |
| 240 | |
| 241 | const customPromiseExecFunction = (orig) => { |
| 242 | return assignFunctionName(orig.name, function(...args) { |
searching dependent graphs…