mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
Implement --invert
for pip tree
(#4621)
## Summary Part of https://github.com/astral-sh/uv/issues/4439. ## Test Plan Existing tests pass + added a couple of new tests with `--invert`.
This commit is contained in:
parent
0ee4a2cc6e
commit
5715def24b
5 changed files with 342 additions and 27 deletions
|
@ -1436,6 +1436,10 @@ pub struct PipTreeArgs {
|
|||
#[arg(long)]
|
||||
pub no_dedupe: bool,
|
||||
|
||||
#[arg(long, alias = "reverse")]
|
||||
/// Show the reverse dependencies for the given package. This flag will invert the tree and display the packages that depend on the given package.
|
||||
pub invert: bool,
|
||||
|
||||
/// Validate the virtual environment, to detect packages with missing dependencies or other
|
||||
/// issues.
|
||||
#[arg(long, overrides_with("no_strict"))]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue