MCPcopy Create free account
hub / github.com/freecodexyz/free-code / findExecutable

Function findExecutable

src/utils/findExecutable.ts:11–17  ·  view source on GitHub ↗
(
  exe: string,
  args: string[],
)

Source from the content-addressed store, hash-verified

9 * `args` is always the pass-through of the input args.
10 */
11export function findExecutable(
12 exe: string,
13 args: string[],
14): { cmd: string; args: string[] } {
15 const resolved = whichSync(exe)
16 return { cmd: resolved ?? exe, args }
17}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected