MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / run

Function run

e2e/scripts/pr-media.ts:31–35  ·  view source on GitHub ↗
(command: string, args: ReadonlyArray<string>)

Source from the content-addressed store, hash-verified

29const CHROME_HEIGHT = 40;
30
31const run = (command: string, args: ReadonlyArray<string>): string =>
32 execFileSync(command, [...args], {
33 encoding: "utf8",
34 maxBuffer: 64 * 1024 * 1024,
35 });
36
37const ghJson = (args: ReadonlyArray<string>): unknown => JSON.parse(run("gh", ["api", ...args]));
38

Callers 4

ghJsonFunction · 0.70
videoDurationFunction · 0.70
toGifFunction · 0.70
pr-media.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected