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

Function commandHasAnyCd

src/tools/BashTool/bashPermissions.ts:2617–2621  ·  view source on GitHub ↗
(command: string)

Source from the content-addressed store, hash-verified

2615 * using normalized detection that handles env var prefixes and shell quotes.
2616 */
2617export function commandHasAnyCd(command: string): boolean {
2618 return splitCommand(command).some(subcmd =>
2619 isNormalizedCdCommand(subcmd.trim()),
2620 )
2621}
2622

Callers 3

bashToolHasPermissionFunction · 0.85
isReadOnlyFunction · 0.85
startSpeculationFunction · 0.85

Calls 1

isNormalizedCdCommandFunction · 0.85

Tested by

no test coverage detected