Add Git-like suggestions for mistyped CLI commands #294
ompathak2004
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
|
@ompathak2004 thanks for the suggestion, that seems like a good idea! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Background
Currently, when a user mistypes a Resend CLI command, the error message can be technically correct but not very helpful.
For example:
In this case, the user likely meant:
A more helpful error message could suggest the closest valid command:
This is similar to Git’s behavior when a user mistypes a command:
Adding Git-like suggestions would improve the CLI experience by helping users recover from typos quickly, especially when commands are pluralized, nested, or easy to mistype.
Proposal
I would like to add a command suggestion layer to the CLI.
The approach would be:
Working demo
Beta Was this translation helpful? Give feedback.
All reactions