You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Good idea. I would probably want to t urn this on by default, and only if there isn't a vorpal.catch command declared. Then it could be turned off like:
You could probably do a PR on this pretty easily, just use the leven module for Levenshtein distance by @sindresorhus , which you could pick the top score under a certain threshhold of edit distance. This isn't computationally expensive and is a small add.
Maybe we can add an additional implementation to display similiar command when user types an invalid command
Example:
When user type
node command.js foozz
, it will output:The text was updated successfully, but these errors were encountered: