bootstrap: supporter des alias de commandes (ex. doctor vers config test) #21
Labels
No labels
area/cli
area/config
area/manifest
area/scaffold
area/secrets
area/update
enhancement
integration/email-mcp
priority/high
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AI/mcp-framework#21
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problème: les binaires qui utilisent bootstrap.Run doivent parfois maintenir des alias locaux (ex: doctor vers config test) en pré-traitant les args. Cela ajoute du glue inutile (normalisation locale, gestion de help doctor et doctor --help, tests dédiés). Proposition: ajouter un mécanisme d alias dans bootstrap.Options, par exemple Aliases map[string][]string. Exemples attendus: doctor -> config test; help doctor -> help config test; doctor --profile work -> config test --profile work; doctor --help -> help config test. Critères d acceptation: un binaire peut déclarer un alias sans pré-traitement local, le routage des handlers fonctionne après expansion, l aide est cohérente, et des tests unitaires bootstrap couvrent ce comportement. Contexte: cas observé dans email-mcp.