Allow multiple packages for uv tool upgrade/uninstall (#7037)

## Summary

Resolves https://github.com/astral-sh/uv/issues/6571

## Test Plan

`cargo test`
This commit is contained in:
Ahmed Ilyas
2024-09-04 23:18:52 +02:00
committed by GitHub
parent c1effd6b05
commit ff39950545
7 changed files with 175 additions and 41 deletions
+2 -2
View File
@@ -3196,7 +3196,7 @@ pub struct ToolDirArgs {
pub struct ToolUninstallArgs {
/// The name of the tool to uninstall.
#[arg(required = true)]
pub name: Option<PackageName>,
pub name: Option<Vec<PackageName>>,
/// Uninstall all tools.
#[arg(long, conflicts_with("name"))]
@@ -3208,7 +3208,7 @@ pub struct ToolUninstallArgs {
pub struct ToolUpgradeArgs {
/// The name of the tool to upgrade.
#[arg(required = true)]
pub name: Option<PackageName>,
pub name: Vec<PackageName>,
/// Upgrade all tools.
#[arg(long, conflicts_with("name"))]