MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / whereCommandLookup

Function whereCommandLookup

scripts/dev-process-utils.mjs:68–74  ·  view source on GitHub ↗
(command)

Source from the content-addressed store, hash-verified

66}
67
68function whereCommandLookup(command) {
69 const result = spawnSync("where.exe", [command], { encoding: "utf8" });
70 if (result.status !== 0 || !result.stdout) {
71 return null;
72 }
73 return result.stdout.split(/\r?\n/).find(Boolean)?.trim() || null;
74}
75
76/**
77 * Signal the whole spawned service tree when possible.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected