MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / isSlashCommand

Function isSlashCommand

cli/src/commands/router-utils.ts:10–12  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

8 * isSlashCommand('help') // => false
9 */
10export function isSlashCommand(input: string): boolean {
11 return input.trim().startsWith('/')
12}
13
14/**
15 * Parse the command name from user input.

Callers 2

routeUserPromptFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected