diff options
| author | Seth Troisi <[email protected]> | 2025-04-29 22:48:40 +0000 |
|---|---|---|
| committer | Seth Troisi <[email protected]> | 2025-04-29 15:50:24 -0700 |
| commit | 19bdc441d6c928aa8c63a3718a469b4d750bd9d4 (patch) | |
| tree | dcb27acda95ef780000ab38a6676c216fd3f576f /packages/cli/src/ui/hooks/slashCommandProcessor.ts | |
| parent | 889200d400c4dec60de0d7b5cdd77261bbb63edb (diff) | |
Add /help
Diffstat (limited to 'packages/cli/src/ui/hooks/slashCommandProcessor.ts')
| -rw-r--r-- | packages/cli/src/ui/hooks/slashCommandProcessor.ts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/cli/src/ui/hooks/slashCommandProcessor.ts b/packages/cli/src/ui/hooks/slashCommandProcessor.ts index 852f64ce..400597e3 100644 --- a/packages/cli/src/ui/hooks/slashCommandProcessor.ts +++ b/packages/cli/src/ui/hooks/slashCommandProcessor.ts @@ -42,6 +42,21 @@ export const useSlashCommandProcessor = ( }, }, { + name: 'help', + description: '/help for help on gemini-code', + action: (_value: PartListUnion) => { + const helpText = + 'I am an interactive CLI tool assistant designed to ' + + 'help with software engineering tasks. I can use tools to read ' + + 'and write files, search code, execute bash commands, and more ' + + 'to assist with development workflows. I will explain commands ' + + 'and ask for permission before running them and will not ' + + 'commit changes unless explicitly instructed.'; + const timestamp = getNextMessageId(Date.now()); + addHistoryItem(setHistory, { type: 'info', text: helpText }, timestamp); + }, + }, + { name: 'exit', description: 'Exit gemini-code', action: (_value: PartListUnion) => { |
