-
Notifications
You must be signed in to change notification settings - Fork 316
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
CLI can panic on bad input #6157
Comments
Removing this line defining aliases fixes it. I think we should remove it, as well as all the others. If users want to define their own aliases, that's simple for them to do, whereas baking in support for commands like
doesn't seem like good UX |
Ah, good find! Yeah, I kinda want to rip out most (if not all) the aliases. |
I agree with @baumanj. In addition, I think the existence of |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We value your input and contribution. Please leave a comment if this issue still affects you. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We value your input and contribution. Please leave a comment if this issue still affects you. |
This issue has been automatically closed after being stale for 400 days. We still value your input and contribution. Please re-open the issue if desired and leave a comment with details. |
Example:
I just got ahead of myself and hit Enter before I typed the "n" for "run".
This shouldn't be a panic; it should just give a usage error.
The cause of this specific panic can be found here:
habitat/components/hab/src/main.rs
Lines 261 to 269 in dc65012
However, it looks like we get to that point because we failed to do anything in
exec_subcommand_if_called
, specifically here:habitat/components/hab/src/main.rs
Lines 1272 to 1274 in dc65012
BUT NOTE! If you run
hab sup runs
, which is also not a command, you get an error message!Something seems to be rather tangled up in our CLI processing here.
(This works on Habitat 0.74.0)
The text was updated successfully, but these errors were encountered: