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

Function runCmd

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

Source from the content-addressed store, hash-verified

90}
91
92export async function runCmd(
93 cmd: string,
94 args: string[],
95 options: ExecOptions = {},
96): Promise<ExecResult> {
97 const overrideResult = commandExecutorOverrideScope.getStore()?.(cmd, args, options);
98 if (overrideResult) return await overrideResult;
99 return await runSpawnedCommand(cmd, args, options);
100}
101
102export async function runCmdStreaming(
103 cmd: string,

Callers 15

runBuiltCliJsonFunction · 0.90
execFileTextFunction · 0.90
createAndroidManifestApkFunction · 0.90
createGzipTarArchiveFunction · 0.90
isPlayableVideoFunction · 0.90
ensureSwiftExecutableFunction · 0.90
exec.test.tsFile · 0.90
runAwsJsonFunction · 0.90
openBrowserFunction · 0.90
runTesseractTsvFunction · 0.90
exportProcessedVideoFunction · 0.90

Calls 1

runSpawnedCommandFunction · 0.85

Tested by 2

execFileTextFunction · 0.72