MCPcopy Index your code
hub / github.com/callstack/agent-device / runSourceCliJsonSync

Function runSourceCliJsonSync

test/integration/cli-json.ts:12–26  ·  view source on GitHub ↗
(
  args: string[],
  options?: { env?: NodeJS.ProcessEnv },
)

Source from the content-addressed store, hash-verified

10};
11
12export function runSourceCliJsonSync(
13 args: string[],
14 options?: { env?: NodeJS.ProcessEnv },
15): CliJsonResult {
16 const result = runCmdSync(
17 process.execPath,
18 ['--experimental-strip-types', 'src/bin.ts', ...args],
19 {
20 allowFailure: true,
21 env: options?.env,
22 timeoutMs: CLI_TIMEOUT_MS,
23 },
24 );
25 return cliJsonResult(result);
26}
27
28export async function runBuiltCliJson(
29 args: string[],

Callers 1

runCliJsonFunction · 0.90

Calls 2

runCmdSyncFunction · 0.90
cliJsonResultFunction · 0.85

Tested by

no test coverage detected