MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isPowerShellToolEnabled

Function isPowerShellToolEnabled

src/utils/shell/shellToolUtils.ts:17–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15 * consistent across all paths that invoke PowerShellTool.call().
16 */
17export function isPowerShellToolEnabled(): boolean {
18 if (getPlatform() !== 'windows') return false
19 return process.env.USER_TYPE === 'ant'
20 ? !isEnvDefinedFalsy(process.env.CLAUDE_CODE_USE_POWERSHELL_TOOL)
21 : isEnvTruthy(process.env.CLAUDE_CODE_USE_POWERSHELL_TOOL)
22}
23

Callers 3

getPowerShellToolFunction · 0.85
processBashCommandFunction · 0.85

Calls 3

getPlatformFunction · 0.85
isEnvDefinedFalsyFunction · 0.85
isEnvTruthyFunction · 0.85

Tested by

no test coverage detected