MCPcopy
hub / github.com/codeaashu/claude-code / getCachedPowerShellPath

Function getCachedPowerShellPath

src/utils/shell/powershellDetection.ts:65–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 5

runPowerShellCommandFunction · 0.85
Shell.tsFile · 0.85
execCommandHookFunction · 0.85
getPowerShellEditionFunction · 0.85

Calls 1

findPowerShellFunction · 0.85

Tested by

no test coverage detected