sade icon indicating copy to clipboard operation
sade copied to clipboard

[Feature Request]: suggest matching commands if the user mistypes

Open jamesgeorge007 opened this issue 4 years ago • 1 comments

Say we've the following CLI definition:-

my-cli <command> [options]

init - Initialize
serve - serve the project
generate - scaffold out a new project

-V, version
-h, help information

If we're to go with commander.js, https://github.com/tj/commander.js/issues/1015#issuecomment-536262298 would make it possible. While, yargs is shipped with a dedicated recommendCommands() method as part of the API. It would be great if the feature was implemented here with sade as well.

jamesgeorge007 avatar Dec 13 '19 12:12 jamesgeorge007

@lukeed I would be happy to submit a PR :+1:

jamesgeorge007 avatar Dec 13 '19 12:12 jamesgeorge007