MCPcopy Create free account
hub / github.com/garrytan/gstack / run

Function run

test/codex-e2e-plan-format.test.ts:129–130  ·  view source on GitHub ↗
(cmd: string, args: string[])

Source from the content-addressed store, hash-verified

127function setupCodexSkillDir(tmpPrefix: string, skillName: 'plan-ceo-review' | 'plan-eng-review'): { skillDir: string; planDir: string; outFile: string } {
128 const planDir = fs.mkdtempSync(path.join(os.tmpdir(), tmpPrefix));
129 const run = (cmd: string, args: string[]) =>
130 spawnSync(cmd, args, { cwd: planDir, stdio: 'pipe', timeout: 5000 });
131
132 run('git', ['init', '-b', 'main']);
133 run('git', ['config', 'user.email', 'test@test.com']);

Callers 1

setupCodexSkillDirFunction · 0.70

Calls 1

spawnSyncFunction · 0.85

Tested by

no test coverage detected