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

command cargo test --list-test-name for shell completion #12919

Closed
loynoir opened this issue Nov 5, 2023 · 1 comment
Closed

command cargo test --list-test-name for shell completion #12919

loynoir opened this issue Nov 5, 2023 · 1 comment
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` S-triage Status: This issue is waiting on initial triage.

Comments

@loynoir
Copy link

loynoir commented Nov 5, 2023

Problem

#5759

#6645

rustup completions zsh cargo can only do static logic completion.

Unless cargo test --list-test-name, there is no way to have completion for dynamic logic.

Proposed Solution

cargo should expose test name logic

$ cargo test --list-test-name

Else, it's impossible to have test name shell completion.

Notes

No response

@loynoir loynoir added C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` S-triage Status: This issue is waiting on initial triage. labels Nov 5, 2023
@epage
Copy link
Contributor

epage commented Nov 6, 2023

Its not clear why this was created when #5759 exists. Closing in favor of that. If this is just for providing an alternative solution, let's keep that in the other issue. Ideally Issues are focused on problems and not solutions as we can then talk about multiple in one place, rather than having them scattered about.

@epage epage closed this as not planned Won't fix, can't repro, duplicate, stale Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` S-triage Status: This issue is waiting on initial triage.
Projects
None yet
Development

No branches or pull requests

2 participants