()
| 63 | * resolves to the PowerShell executable path or null. |
| 64 | */ |
| 65 | export function getCachedPowerShellPath(): Promise<string | null> { |
| 66 | if (!cachedPowerShellPath) { |
| 67 | cachedPowerShellPath = findPowerShell() |
| 68 | } |
| 69 | return cachedPowerShellPath |
| 70 | } |
| 71 | |
| 72 | export type PowerShellEdition = 'core' | 'desktop' |
| 73 |
no test coverage detected