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

Function runDev

test/gstack-developer-profile.test.ts:34–45  ·  view source on GitHub ↗
(...args: string[])

Source from the content-addressed store, hash-verified

32});
33
34function runDev(...args: string[]): { stdout: string; stderr: string; status: number } {
35 const res = spawnSync(BIN_DEV, args, {
36 env: { ...process.env, GSTACK_HOME: tmpHome },
37 encoding: 'utf-8',
38 cwd: ROOT,
39 });
40 return {
41 stdout: res.stdout ?? '',
42 stderr: res.stderr ?? '',
43 status: res.status ?? -1,
44 };
45}
46
47function logQuestion(payload: Record<string, unknown>): number {
48 const res = spawnSync(BIN_LOG, [JSON.stringify(payload)], {

Calls 1

spawnSyncFunction · 0.85

Tested by

no test coverage detected