(command: string)
| 11 | } |
| 12 | |
| 13 | function 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 | |
| 31 | function resolveShimScript(shimPath: string): string | null { |
| 32 | const shimDirectory = windowsPath.dirname(shimPath); |
no outgoing calls
no test coverage detected