(command, args, opts, cb)
| 176 | }) |
| 177 | |
| 178 | function spawn (command, args, opts, cb) { |
| 179 | if (!opts.stdio) opts.stdio = argv.quiet ? 'ignore' : 'inherit' |
| 180 | |
| 181 | const child = crossSpawn(command, args, opts) |
| 182 | child.on('error', cb) |
| 183 | child.on('close', code => { |
| 184 | if (code !== 0) return cb(new Error(`non-zero exit code: ${code}`)) |
| 185 | cb(null) |
| 186 | }) |
| 187 | return child |
| 188 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…