Expand description
Slash command definitions and interactive command picker
Provides Gemini CLI-style “/” command system with:
- Interactive command picker when typing “/”
- Arrow key navigation
- Auto-complete on Enter
- Token usage tracking via /cost
Structs§
- Command
Picker - Interactive command picker state
- Slash
Command - A slash command definition
- Token
Usage - Token usage statistics for /cost command Tracks actual vs approximate tokens similar to Forge
Enums§
- Token
Count Type - Whether a token count is actual (from API) or approximate (estimated)
Constants§
- SLASH_
COMMANDS - All available slash commands
Functions§
- match_
command - Check if a command matches a query (name or alias)
- show_
command_ picker - Show interactive command picker and return selected command This is called when user types “/” - shows suggestions immediately Returns None if cancelled, Some(command_name) if selected