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

Function run

test/diff-scope.test.ts:21–22  ·  view source on GitHub ↗
(cmd: string, args: string[])

Source from the content-addressed store, hash-verified

19 dirs.push(dir);
20
21 const run = (cmd: string, args: string[]) =>
22 spawnSync(cmd, args, { cwd: dir, stdio: 'pipe', timeout: 5000 });
23
24 run('git', ['init', '-b', 'main']);
25 run('git', ['config', 'user.email', 'test@test.com']);

Callers 1

createRepoFunction · 0.70

Calls 1

spawnSyncFunction · 0.85

Tested by

no test coverage detected