MCPcopy
hub / github.com/garrytan/gstack / spawnSync

Function spawnSync

browse/src/bun-polyfill.cjs:67–85  ·  view source on GitHub ↗
(cmd, options = {})

Source from the content-addressed store, hash-verified

65 },
66
67 spawnSync(cmd, options = {}) {
68 const [command, ...args] = cmd;
69 const result = spawnSync(command, args, {
70 stdio: [
71 options.stdin || 'pipe',
72 options.stdout === 'pipe' ? 'pipe' : 'ignore',
73 options.stderr === 'pipe' ? 'pipe' : 'ignore',
74 ],
75 timeout: options.timeout,
76 env: options.env,
77 cwd: options.cwd,
78 });
79
80 return {
81 exitCode: result.status,
82 stdout: result.stdout || Buffer.from(''),
83 stderr: result.stderr || Buffer.from(''),
84 };
85 },
86
87 spawn(cmd, options = {}) {
88 const [command, ...args] = cmd;

Callers 15

runSlugFunction · 0.90
spawnGbrainFunction · 0.85
resolveSlugFunction · 0.85
gitBranchFunction · 0.85
gitFunction · 0.85
ensureSourceRegisteredFunction · 0.85
defaultProcessRunningFunction · 0.85
gbrainIdentityFunction · 0.85
spawnLogFunction · 0.85
logAutoDecidedFunction · 0.85
sessionKindFunction · 0.85

Calls

no outgoing calls

Tested by 15

runSlugFunction · 0.72
runVerifyFunction · 0.68
runLibSnippetFunction · 0.68
shFunction · 0.68
snapshotFixtureFunction · 0.68
runFunction · 0.68
runConfigFunction · 0.68
scaffoldFixtureFunction · 0.68
runRollbackSequenceFunction · 0.68
runFunction · 0.68
runFunction · 0.68
runFunction · 0.68