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

Function runCmdStreaming

src/utils/exec.ts:102–110  ·  view source on GitHub ↗
(
  cmd: string,
  args: string[],
  options: ExecStreamOptions = {},
)

Source from the content-addressed store, hash-verified

100}
101
102export async function runCmdStreaming(
103 cmd: string,
104 args: string[],
105 options: ExecStreamOptions = {},
106): Promise<ExecResult> {
107 const overrideResult = commandExecutorOverrideScope.getStore()?.(cmd, args, options);
108 if (overrideResult) return await overrideResult;
109 return await runSpawnedCommand(cmd, args, options);
110}
111
112function runSpawnedCommand(
113 cmd: string,

Callers 4

exec.test.tsFile · 0.90
runReactDevtoolsCommandFunction · 0.90
runAgentCdpCommandFunction · 0.90
buildRunnerXctestrunFunction · 0.90

Calls 1

runSpawnedCommandFunction · 0.85

Tested by

no test coverage detected