Add uv toolchain uninstall (#4646)

This commit is contained in:
Zanie Blue 2024-07-01 22:37:53 -04:00 committed by GitHub
parent ad5151cda8
commit 8dabc29d80
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 167 additions and 6 deletions

View file

@ -2022,15 +2022,18 @@ pub enum ToolchainCommand {
/// List the available toolchains.
List(ToolchainListArgs),
/// Download and install a specific toolchain.
/// Download and install toolchains.
Install(ToolchainInstallArgs),
/// Search for a toolchain
/// Search for a toolchain.
#[command(disable_version_flag = true)]
Find(ToolchainFindArgs),
/// Show the toolchains directory.
Dir,
/// Uninstall toolchains.
Uninstall(ToolchainUninstallArgs),
}
#[derive(Args)]
@ -2064,6 +2067,13 @@ pub struct ToolchainInstallArgs {
pub force: bool,
}
#[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct ToolchainUninstallArgs {
/// The toolchains to uninstall.
pub targets: Vec<String>,
}
#[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct ToolchainFindArgs {