Module commands

Module commands 

Source
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§

CommandPicker
Interactive command picker state
SlashCommand
A slash command definition
TokenUsage
Token usage statistics for /cost command Tracks actual vs approximate tokens similar to Forge

Enums§

TokenCountType
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