(candidate: string)
| 28 | } |
| 29 | |
| 30 | export function isPowerShellExecutablePath(candidate: string): boolean { |
| 31 | const basename = basenameWithoutExe(candidate) |
| 32 | return basename === 'pwsh' || basename === 'powershell' |
| 33 | } |
| 34 | |
| 35 | function hasPathSeparator(candidate: string): boolean { |
| 36 | return candidate.includes('/') || candidate.includes('\\') |
no test coverage detected