diff options
| author | Seth Troisi <[email protected]> | 2025-04-29 23:38:26 +0000 |
|---|---|---|
| committer | Seth Troisi <[email protected]> | 2025-04-29 17:20:38 -0700 |
| commit | fb23321514dbc8d1c0243457e8d5d8d953bb3985 (patch) | |
| tree | 1600685a1ab5aad8361701122d9212e91131fb60 /packages/cli/src/ui/hooks/slashCommandProcessor.ts | |
| parent | bf659f19776ddc4eb9825bd5376c66288aed06c8 (diff) | |
Add Intro text with list of /commands
Diffstat (limited to 'packages/cli/src/ui/hooks/slashCommandProcessor.ts')
| -rw-r--r-- | packages/cli/src/ui/hooks/slashCommandProcessor.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/cli/src/ui/hooks/slashCommandProcessor.ts b/packages/cli/src/ui/hooks/slashCommandProcessor.ts index 400597e3..6608001b 100644 --- a/packages/cli/src/ui/hooks/slashCommandProcessor.ts +++ b/packages/cli/src/ui/hooks/slashCommandProcessor.ts @@ -9,7 +9,7 @@ import { type PartListUnion } from '@google/genai'; import { HistoryItem } from '../types.js'; import { isSlashCommand } from '../utils/commandUtils.js'; -interface SlashCommand { +export interface SlashCommand { name: string; // slash command description: string; // flavor text in UI action: (value: PartListUnion) => void; @@ -43,7 +43,7 @@ export const useSlashCommandProcessor = ( }, { name: 'help', - description: '/help for help on gemini-code', + description: 'for help on gemini-code', action: (_value: PartListUnion) => { const helpText = 'I am an interactive CLI tool assistant designed to ' + @@ -58,7 +58,7 @@ export const useSlashCommandProcessor = ( }, { name: 'exit', - description: 'Exit gemini-code', + description: '', action: (_value: PartListUnion) => { setDebugMessage('Exiting. Good-bye.'); const timestamp = getNextMessageId(Date.now()); @@ -73,7 +73,7 @@ export const useSlashCommandProcessor = ( { // TODO: dedup with exit by adding altName or cmdRegex. name: 'quit', - description: 'Quit gemini-code', + description: '', action: (_value: PartListUnion) => { setDebugMessage('Quitting. Good-bye.'); const timestamp = getNextMessageId(Date.now()); @@ -121,5 +121,5 @@ export const useSlashCommandProcessor = ( [setDebugMessage, setHistory, getNextMessageId, slashCommands], ); - return { handleSlashCommand }; + return { handleSlashCommand, slashCommands }; }; |
