aws / aws/amazon-q-developer-cli

Add command-specific help to `/help` command

Aperta
#1,374 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Rust
Stelle
2k
Fork
439
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

## Description
Currently, the `/help` command only shows general help information for all commands. It would be useful to add support for showing help for specific commands, such as `/help context` or `/help profile`.

## Current Behavior
When a user types `/help`, they see a general overview of all available commands.
When a user types `/help `, it still shows the general help instead of specific help for that command.

## Desired Behavior
- `/help` should continue to show general help information for all commands
- `/help ` should show detailed help information for the specified command
- For example, `/help context` should show detailed help for the context command and its subcommands

## Benefits
- Users can get more detailed help for specific commands without having to remember all the different help commands
- Consistent with how help commands work in other CLI tools
- Reduces the need for separate help subcommands for each command

## Examples

│ /help
[Shows general help for all commands]

│ /help context
[Shows detailed help for the context command]

│ /help profile
[Shows detailed help for the profile command]

│ /help nonexistent
Command 'nonexistent' not found. Here's the general help:
[Shows general help for all commands]

## Related Work
- This feature would complement the existing command registry system implemented as part of RFC 0002: internal_command_tool
- Related to the command registry migration plan that ensures consistent behavior between direct command execution and tool-based execution

🤖 Assisted by [Amazon Q Developer](https://aws.amazon.com/q/developer)

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia tracciando il comando `/help` e il registro dei comandi descritto in RFC 0002: internal_command_tool. Confronta come vengono gestiti `/help`, `/help context` e `/help profile`, incluso il caso di un comando inesistente. Il lavoro è completato quando comandi specifici mostrano una guida dettagliata, `/help` senza argomenti mantiene la guida generale e i comandi sconosciuti ricadono sulla guida generale con un errore.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
rust
Ambito
cli
Tipo di issue
Funzionalità
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.