(name: string)
| 304 | * Get a specific built-in command by name |
| 305 | */ |
| 306 | export async function getBuiltInCommand(name: string): Promise<Command | undefined> { |
| 307 | const cmd = BUILT_IN_COMMANDS[name] |
| 308 | if (!cmd) return undefined |
| 309 | |
| 310 | return { |
| 311 | name: cmd.name, |
| 312 | content: cmd.content, |
| 313 | source: "built-in" as const, |
| 314 | filePath: `<built-in:${name}>`, |
| 315 | description: cmd.description, |
| 316 | argumentHint: cmd.argumentHint, |
| 317 | } |
| 318 | } |
| 319 | |
| 320 | /** |
| 321 | * Get names of all built-in commands |
no outgoing calls
no test coverage detected