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

Function defineCommandWithArgs

cli/src/commands/command-registry.ts:152–161  ·  view source on GitHub ↗
(
  config: CommandWithArgsConfig,
)

Source from the content-addressed store, hash-verified

150 * })
151 */
152export function defineCommandWithArgs(
153 config: CommandWithArgsConfig,
154): CommandDefinition {
155 return {
156 name: config.name,
157 aliases: config.aliases ?? [],
158 acceptsArgs: true,
159 handler: config.handler,
160 }
161}
162
163const clearInput = (params: RouterParams) => {
164 params.setInputValue({ text: '', cursorPosition: 0, lastEditDueToNav: false })

Callers 3

createSkillCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected