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

Function runRead

test/timeline.test.ts:31–43  ·  view source on GitHub ↗
(args: string = '')

Source from the content-addressed store, hash-verified

29}
30
31function runRead(args: string = ''): string {
32 const execOpts: ExecSyncOptionsWithStringEncoding = {
33 cwd: ROOT,
34 env: { ...process.env, GSTACK_HOME: tmpDir },
35 encoding: 'utf-8',
36 timeout: 15000,
37 };
38 try {
39 return execSync(`${BIN}/gstack-timeline-read ${args}`, execOpts).trim();
40 } catch {
41 return '';
42 }
43}
44
45function runReadArgs(args: string[] = []): string {
46 const execOpts: ExecSyncOptionsWithStringEncoding = {

Callers 1

timeline.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected