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

Function run

test/telemetry.test.ts:13–20  ·  view source on GitHub ↗
(cmd: string, env: Record<string, string> = {})

Source from the content-addressed store, hash-verified

11let tmpDir: string;
12
13function run(cmd: string, env: Record<string, string> = {}): string {
14 return execSync(cmd, {
15 cwd: ROOT,
16 env: { ...process.env, GSTACK_STATE_DIR: tmpDir, GSTACK_DIR: ROOT, ...env },
17 encoding: 'utf-8',
18 timeout: 10000,
19 }).trim();
20}
21
22function setConfig(key: string, value: string) {
23 run(`${BIN}/gstack-config set ${key} ${value}`);

Callers 2

setConfigFunction · 0.70
telemetry.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected