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

Function getCommandName

src/types/command.ts:209–211  ·  view source on GitHub ↗
(cmd: CommandBase)

Source from the content-addressed store, hash-verified

207
208/** Resolves the user-visible name, falling back to `cmd.name` when not overridden. */
209export function getCommandName(cmd: CommandBase): string {
210 return cmd.userFacingName?.() ?? cmd.name
211}
212
213/** Resolves whether the command is enabled, defaulting to true. */
214export function isCommandEnabled(cmd: CommandBase): boolean {

Callers 15

findCommandFunction · 0.50
getCommandFunction · 0.50
formatCommandDescriptionFunction · 0.50
_temp3Function · 0.50
_temp2Function · 0.50
handlePromptSubmitFunction · 0.50
countSkillTokensFunction · 0.50
formatCommandInputFunction · 0.50
processUserInputBaseFunction · 0.50
getCommandFuseFunction · 0.50
getBestCommandMatchFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected