spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / mods / sec-default / tests / fixtures / command-described.ts
20 lines · 513 BRaw
1import type { CommandDescribeInput, Origin } from 'claude-code'
2
3/**
4 * A visible command's description as the engine asks for it, pinned to
5 * who provides the command.
6 *
7 * @param command the command's name, no slash
8 * @param provider who provides it, as the engine pinned it
9 * @returns the `command.describe` input
10 */
11export const commandDescribed = (
12 command: string,
13 provider: Origin,
14): CommandDescribeInput => ({
15 command,
16 description: 'd',
17 isHidden: false,
18 immediate: false,
19 provider,
20})