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