-
-
Notifications
You must be signed in to change notification settings - Fork 289
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
No error message for failed install command #525
Comments
Hi @YuviGold Thanks for taking time to suggest an enhancement. I think we would be willing to take a look at a PR that returned a different exit code and message for a mistyped or non-existing CLI for download. Then we can discuss the lazy matching and fuzzy matching separately after. Alex |
This was referenced Oct 3, 2021
Thank you @alexellis I created 2 PRs:
I hope cobra will look into it soon :) |
/close: fixed in #529
|
/lock: resolved |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
No error message when trying to install a non existing app.
Expected Behaviour
get
command, suggest to use it. For example when usingarkade install kind
the user most definitely intended to get it and not to install it on top of a cluster.Current Behaviour
No error message is shown at all and the returned exit code is 0.
Are you a GitHub Sponsor (Yes/No?)
Check at https://github.com/sponsors/alexellis
Possible Solution
It seems cli/cli implemented the suggestions themselves. I would expect
cobra
to support it though.https://github.com/cli/cli/blob/029d49f3b38ebd54cd84b23732bb7efabfce4896/pkg/cmd/root/help.go#L51-L76
Steps to Reproduce (for bugs)
Context
I was trying to get stuff and mistakenly used
install
command instead ofget
. Afterwards I noticed thatinstall
doesn't return any error message to the user to inform him of his mistake.Your Environment
The text was updated successfully, but these errors were encountered: