mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
implement --depth
, --prune
for pip tree
(#4440)
This commit is contained in:
parent
2eb1e6693c
commit
c74ef75059
5 changed files with 349 additions and 2 deletions
|
@ -1404,6 +1404,13 @@ pub struct PipShowArgs {
|
|||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct PipTreeArgs {
|
||||
/// Maximum display depth of the dependency tree
|
||||
#[arg(long, short, default_value_t = 255)]
|
||||
pub depth: u8,
|
||||
|
||||
/// Prune the given package from the display of the dependency tree.
|
||||
#[arg(long)]
|
||||
pub prune: 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