MCPcopy
hub / github.com/Fission-AI/OpenSpec / defaultSpawn

Function defaultSpawn

src/commands/workset.ts:72–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70// loaded lazily so every other CLI invocation skips its module graph.
71let cachedSpawn: typeof nodeSpawn | undefined;
72function defaultSpawn(): typeof nodeSpawn {
73 if (cachedSpawn === undefined) {
74 const require = createRequire(import.meta.url);
75 cachedSpawn = require('cross-spawn') as typeof nodeSpawn;
76 }
77 return cachedSpawn;
78}
79
80interface WorksetCreateOptions {
81 member?: string[];

Callers 1

launchOpenerCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected