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

Function hasCommand

src/commands.ts:702–704  ·  view source on GitHub ↗
(commandName: string, commands: Command[])

Source from the content-addressed store, hash-verified

700}
701
702export function hasCommand(commandName: string, commands: Command[]): boolean {
703 return findCommand(commandName, commands) !== undefined
704}
705
706export function getCommand(commandName: string, commands: Command[]): Command {
707 const command = findCommand(commandName, commands)

Callers

nothing calls this directly

Calls 1

findCommandFunction · 0.85

Tested by

no test coverage detected