MCPcopy Create free account
hub / github.com/WJX20/claude-code / isPowerShellExecutable

Function isPowerShellExecutable

src/tools/PowerShellTool/powershellSecurity.ts:46–57  ·  view source on GitHub ↗

* Extracts the base executable name from a command, handling full paths * like /usr/bin/pwsh, C:\Windows\...\powershell.exe, or .\pwsh.

(name: string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

checkEncodedCommandFunction · 0.85
checkPwshCommandOrFileFunction · 0.85
checkStartProcessFunction · 0.85

Calls 2

maxMethod · 0.80
hasMethod · 0.45

Tested by

no test coverage detected