MCPcopy
hub / github.com/garrytan/gstack / runAs

Function runAs

test/gstack-gbrain-sync.test.ts:255–261  ·  view source on GitHub ↗
(host: string)

Source from the content-addressed store, hash-verified

253 const PATH = `${bindir}:${process.env.PATH || ""}`;
254
255 const runAs = (host: string) =>
256 spawnSync("bun", [SCRIPT, "--dry-run", "--code-only", "--quiet"], {
257 encoding: "utf-8",
258 timeout: 60000,
259 cwd: repo,
260 env: { ...process.env, HOME: home, GSTACK_HOME: gstackHome, GSTACK_HOSTNAME: host, PATH },
261 });
262
263 const a = runAs("machine-a");
264 const b = runAs("machine-b");

Callers 1

Calls 1

spawnSyncFunction · 0.85

Tested by

no test coverage detected