-
Notifications
You must be signed in to change notification settings - Fork 2.7k
feat(tree): Add more native completions #16296
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
Conversation
|
r? @weihanglo rustbot has assigned @weihanglo. Use |
src/bin/cargo/commands/tree.rs
Outdated
| "KINDS", | ||
| "The kinds of dependencies to display \ | ||
| (features, normal, build, dev, all, \ | ||
| no-normal, no-build, no-dev, no-proc-macro)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Give we have value_parser specified, this list can be removed I guess?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... I must have reverted that change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we simplify this, as clap handles it already?
cargo/src/bin/cargo/commands/tree.rs
Lines 308 to 316 in f3b7ff7
| let unknown = |k| { | |
| bail!( | |
| "unknown edge kind `{}`, valid values are \ | |
| \"normal\", \"build\", \"dev\", \ | |
| \"no-normal\", \"no-build\", \"no-dev\", \"no-proc-macro\", \ | |
| \"features\", or \"all\"", | |
| k | |
| ) | |
| }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Update cargo submodule 7 commits in 9fa462fe3a81e07e0bfdcc75c29d312c55113ebb..2a7c4960677971f88458b0f8b461a866836dff59 2025-11-21 20:49:51 +0000 to 2025-11-25 19:58:07 +0000 - docs(config-include): prepare for doc stabilization (rust-lang/cargo#16301) - fix(config-include): remove support of single string shorthand (rust-lang/cargo#16298) - Revert "feat: Do not lock the artifact-dir for check builds" (rust-lang/cargo#16299) - clean: Add --workspace support (rust-lang/cargo#16263) - feat(tree): Add more native completions (rust-lang/cargo#16296) - fix(package): exclude target/package from backups (rust-lang/cargo#16272) - test: re-enable test since not flaky anymore (rust-lang/cargo#16287)
What does this PR try to resolve?
This adds
--prune SPECand--edges KINDcompletionsHow to test and review this PR?