Skip to content
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

Suggest correct command if other command is very similar #8

Open
mondeja opened this issue Aug 12, 2022 · 0 comments
Open

Suggest correct command if other command is very similar #8

mondeja opened this issue Aug 12, 2022 · 0 comments

Comments

@mondeja
Copy link
Contributor

mondeja commented Aug 12, 2022

For example if I execute poetry exec docs and a doc command exists, instead of showing this error (current):

$ poetry exec docs

Unable to find the command 'docs'. To configure a command you must add it to your pyproject.toml under the path [tool.poetry-exec-plug
in.commands]. For example:

[tool.poetry-exec-plugin.commands]
docs = "echo Hello World"

It would show something like:

$ poetry exec docs

Unable to find the command 'docs'. Perhaps you wanted to run the 'doc' command?
npm output
$ npm run docs
npm ERR! Missing script: "docs"
npm ERR! 
npm ERR! Did you mean one of these?
npm ERR!     npm run doc
npm ERR!     npm run doc:show
npm ERR! 
npm ERR! To see a list of scripts, run:
npm ERR!   npm run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant