-
-
Notifications
You must be signed in to change notification settings - Fork 792
✨ Enable command suggestions on typo by default #1371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
📝 Docs previewLast commit a4d590b at: https://923dd50a.typertiangolo.pages.dev Modified Pages |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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: