MCPcopy
hub / github.com/standard/standard / spawn

Function spawn

test/external/clone.js:178–188  ·  view source on GitHub ↗
(command, args, opts, cb)

Source from the content-addressed store, hash-verified

176})
177
178function 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}

Callers 6

gitCloneFunction · 0.85
gitPullFunction · 0.85
npmInstallFunction · 0.85
runStandardFunction · 0.85
runStandardFixFunction · 0.85
runGitResetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…