mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
Implement --package
for pip tree
(#4655)
## Summary Part of https://github.com/astral-sh/uv/issues/4439. ## Test Plan The existing tests pass + added a couple of tests to ensure `--package` behaves as expected.
This commit is contained in:
parent
a4417eba4a
commit
61014d48b0
5 changed files with 185 additions and 9 deletions
|
@ -1428,6 +1428,11 @@ pub struct PipTreeArgs {
|
|||
/// Prune the given package from the display of the dependency tree.
|
||||
#[arg(long)]
|
||||
pub prune: Vec<PackageName>,
|
||||
|
||||
/// Display only the specified packages.
|
||||
#[arg(long)]
|
||||
pub package: Vec<PackageName>,
|
||||
|
||||
/// Do not de-duplicate repeated dependencies.
|
||||
/// Usually, when a package has already displayed its dependencies,
|
||||
/// further occurrences will not re-display its dependencies,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue