MCPcopy Create free account
hub / github.com/tiann/hapi / findWhereResults

Function findWhereResults

cli/src/codex/utils/codexExecutable.ts:13–29  ·  view source on GitHub ↗
(command: string)

Source from the content-addressed store, hash-verified

11}
12
13function findWhereResults(command: string): string[] {
14 try {
15 const result = execFileSync('where.exe', [command], {
16 encoding: 'utf8',
17 stdio: ['pipe', 'pipe', 'pipe'],
18 cwd: homedir(),
19 windowsHide: process.platform === 'win32'
20 });
21
22 return result
23 .split(/\r?\n/)
24 .map((line) => line.trim())
25 .filter(Boolean);
26 } catch {
27 return [];
28 }
29}
30
31function resolveShimScript(shimPath: string): string | null {
32 const shimDirectory = windowsPath.dirname(shimPath);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected