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

Function run

test/gstack-question-preference.test.ts:29–40  ·  view source on GitHub ↗
(...args: string[])

Source from the content-addressed store, hash-verified

27});
28
29function run(...args: string[]): { stdout: string; stderr: string; status: number } {
30 const res = spawnSync(BIN, args, {
31 env: { ...process.env, GSTACK_HOME: tmpHome },
32 encoding: 'utf-8',
33 cwd: ROOT,
34 });
35 return {
36 stdout: res.stdout ?? '',
37 stderr: res.stderr ?? '',
38 status: res.status ?? -1,
39 };
40}
41
42// -----------------------------------------------------------------------
43// --check

Callers 2

setPrefFunction · 0.70

Calls 1

spawnSyncFunction · 0.85

Tested by

no test coverage detected