sade
sade copied to clipboard
[Feature Request]: suggest matching commands if the user mistypes
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.
@lukeed I would be happy to submit a PR :+1: