MCPcopy Create free account
hub / github.com/awslabs/llrt / run

Function run

tests/unit/executable.test.ts:28–34  ·  view source on GitHub ↗
(
  filename: string,
  args: string[] = []
)

Source from the content-addressed store, hash-verified

26};
27
28const run = async (
29 filename: string,
30 args: string[] = []
31): Promise<{ code: number; output: string }> => {
32 const { code, stdout, stderr } = await spawnCapture(filename, args);
33 return { code, output: stdout + stderr };
34};
35
36describe("executable compilation", () => {
37 let tmpDir: string;

Callers 1

executable.test.tsFile · 0.70

Calls 1

spawnCaptureFunction · 0.90

Tested by

no test coverage detected