mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
Add uv toolchain uninstall
(#4646)
This commit is contained in:
parent
ad5151cda8
commit
8dabc29d80
9 changed files with 167 additions and 6 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue