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

Function execFileText

test/integration/installed-package-metro.test.ts:24–34  ·  view source on GitHub ↗
(
  file: string,
  args: string[],
  options: { cwd: string },
)

Source from the content-addressed store, hash-verified

22}
23
24async function execFileText(
25 file: string,
26 args: string[],
27 options: { cwd: string },
28): Promise<string> {
29 const result = await runCmd(file, args, {
30 cwd: options.cwd,
31 timeoutMs: SUBPROCESS_TIMEOUT_MS,
32 });
33 return result.stdout;
34}
35
36function packInstalledPackage(tempRoot: string): string {
37 const packDir = path.join(tempRoot, 'pack');

Callers 2

runNodeModuleJsonFunction · 0.85

Calls 1

runCmdFunction · 0.90

Tested by

no test coverage detected