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

Function isFilesystemCommand

src/tools/BashTool/modeValidation.ts:19–21  ·  view source on GitHub ↗
(command: string)

Source from the content-addressed store, hash-verified

17type FilesystemCommand = (typeof ACCEPT_EDITS_ALLOWED_COMMANDS)[number]
18
19function isFilesystemCommand(command: string): command is FilesystemCommand {
20 return ACCEPT_EDITS_ALLOWED_COMMANDS.includes(command as FilesystemCommand)
21}
22
23function validateCommandForMode(
24 cmd: string,

Callers 1

validateCommandForModeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected