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

Function run

test/gstack-artifacts-url.test.ts:15–22  ·  view source on GitHub ↗
(args: string[])

Source from the content-addressed store, hash-verified

13const URL_BIN = path.join(ROOT, 'bin', 'gstack-artifacts-url');
14
15function run(args: string[]): { code: number; stdout: string; stderr: string } {
16 const r = spawnSync(URL_BIN, args, { encoding: 'utf-8' });
17 return {
18 code: r.status ?? -1,
19 stdout: (r.stdout || '').trim(),
20 stderr: (r.stderr || '').trim(),
21 };
22}
23
24describe('gstack-artifacts-url', () => {
25 test('--to ssh from canonical https', () => {

Callers 1

Calls 1

spawnSyncFunction · 0.85

Tested by

no test coverage detected