MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / capture

Function capture

packages/cli/src/commands/cloudrun.ts:282–288  ·  view source on GitHub ↗
(cmd: string, cmdArgs: string[], opts: { cwd?: string } = {})

Source from the content-addressed store, hash-verified

280 }
281}
282function capture(cmd: string, cmdArgs: string[], opts: { cwd?: string } = {}): string {
283 const res = spawnSync(cmd, cmdArgs, { encoding: "utf8", cwd: opts.cwd });
284 if (res.status !== 0) {
285 throw new Error(`[cloudrun] \`${cmd} ${cmdArgs.join(" ")}\` failed: ${res.stderr}`);
286 }
287 return res.stdout.trim();
288}
289
290// ── deploy ──────────────────────────────────────────────────────────────────
291

Callers 1

runDeployFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected