MCPcopy Index your code
hub / github.com/Noumena-Network/code / hasCommand

Function hasCommand

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

Source from the content-addressed store, hash-verified

709}
710
711export function hasCommand(commandName: string, commands: Command[]): boolean {
712 return findCommand(commandName, commands) !== undefined
713}
714
715export function getCommand(commandName: string, commands: Command[]): Command {
716 const command = findCommand(commandName, commands)

Callers

nothing calls this directly

Calls 1

findCommandFunction · 0.85

Tested by

no test coverage detected