(p: string)
| 5 | import { which } from '../which.js' |
| 6 | |
| 7 | async function probePath(p: string): Promise<string | null> { |
| 8 | try { |
| 9 | return (await stat(p)).isFile() ? p : null |
| 10 | } catch { |
| 11 | return null |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | /** |
| 16 | * Attempts to find PowerShell on the system via PATH. |
no test coverage detected