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

Include aliases in no such subcommand suggestion search #7278

Closed
anp opened this issue Aug 21, 2019 · 0 comments · Fixed by #7486
Closed

Include aliases in no such subcommand suggestion search #7278

anp opened this issue Aug 21, 2019 · 0 comments · Fixed by #7486
Labels
A-cli Area: Command-line interface, option parsing, etc. C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`

Comments

@anp
Copy link
Member

anp commented Aug 21, 2019

Describe the problem you are trying to solve

I have a (perhaps ill-advisedly) large number of project-specific subcommands defined in .cargo/config.

Describe the solution you'd like

When I misremember an alias, or typo it, I would love it if cargo included my project's aliases in the list of possible suggestions to use instead.

@anp anp added the C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` label Aug 21, 2019
zachlute added a commit to zachlute/cargo that referenced this issue Aug 22, 2019
Fixes rust-lang#7278.

Adds the ability to list all available aliases (by enumerating configuration subkeys) and to provide them to the suggestion distance calculator.

Also adds tests for alias suggestions.
@ehuss ehuss added the A-cli Area: Command-line interface, option parsing, etc. label Sep 21, 2019
zachlute added a commit to zachlute/cargo that referenced this issue Oct 5, 2019
Fixes rust-lang#7278.

Adds the ability to list all available aliases (by enumerating configuration subkeys) and to provide them to the suggestion distance calculator.

Also adds tests for alias suggestions.
bors added a commit that referenced this issue Nov 11, 2019
Added aliases to subcommand typo suggestions.

Fixes #7278.

Also adds tests for alias suggestions.
@bors bors closed this as completed in ff3e880 Nov 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cli Area: Command-line interface, option parsing, etc. C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Projects
None yet
2 participants