✨ Enable command suggestions on typo by default#1371
✨ Enable command suggestions on typo by default#1371tiangolo merged 13 commits intofastapi:masterfrom
Conversation
📝 Docs previewLast commit a4d590b at: https://923dd50a.typertiangolo.pages.dev Modified Pages |
svlandeg
left a comment
There was a problem hiding this comment.
I think this is a great feature to have, and I would have even wanted to enable this by default. But to minimize unexpected impact on users it probably makes sense to have it disabled by default as you suggest.
Love all the tests, went through it all and all looked good. Addition to the tutorial is perfect and the added code is minimal and clean.
Could really only find the smallest of nitpicks, but happy to approve either way. 😉
Co-authored-by: Sofie Van Landeghem <[email protected]>
tiangolo
left a comment
There was a problem hiding this comment.
Awesome, thank you! 🚀
Note: just for completeness, I asked on another channel to have this enabled by default, so it is now on by default. 😎 🎉
This will be available in the next hours in Typer 0.20.0.
This PR adds a common CLI feature to Typer, which allows users to get suggestions for command typos out of the box. No extra dependency or work required!
Usage
If a user were to type
crateinstead ofcreate, they would then see an error message like so: