From 60431ce78c66e1c5387ded78f14ae746d35ff8fb Mon Sep 17 00:00:00 2001 From: Nyakku Shigure Date: Tue, 11 Jun 2024 20:00:33 +0800 Subject: [PATCH] Replace `toolchain fetch` with `toolchain install` (#4228) ## Summary Something that looks like it was forgotten to replace in #4164. ## Test Plan Run `cargo run toolchain install` should display the warning: ``warning: `uv toolchain install` is experimental and may change without warning.`` --- crates/uv/src/cli.rs | 2 +- crates/uv/src/commands/toolchain/install.rs | 2 +- crates/uv/src/settings.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/uv/src/cli.rs b/crates/uv/src/cli.rs index 9efc08988..9751f928e 100644 --- a/crates/uv/src/cli.rs +++ b/crates/uv/src/cli.rs @@ -2014,7 +2014,7 @@ pub(crate) struct ToolchainListArgs { #[derive(Args)] #[allow(clippy::struct_excessive_bools)] pub(crate) struct ToolchainInstallArgs { - /// The toolchain to fetch. + /// The toolchain to install. /// /// If not provided, the latest available version will be installed. pub(crate) target: Option, diff --git a/crates/uv/src/commands/toolchain/install.rs b/crates/uv/src/commands/toolchain/install.rs index 383f711d5..2f5966711 100644 --- a/crates/uv/src/commands/toolchain/install.rs +++ b/crates/uv/src/commands/toolchain/install.rs @@ -23,7 +23,7 @@ pub(crate) async fn install( printer: Printer, ) -> Result { if preview.is_disabled() { - warn_user!("`uv toolchain fetch` is experimental and may change without warning."); + warn_user!("`uv toolchain install` is experimental and may change without warning."); } let toolchains = InstalledToolchains::from_settings()?.init()?; diff --git a/crates/uv/src/settings.rs b/crates/uv/src/settings.rs index b625e8520..9650f4408 100644 --- a/crates/uv/src/settings.rs +++ b/crates/uv/src/settings.rs @@ -266,7 +266,7 @@ impl ToolchainListSettings { } } -/// The resolved settings to use for a `toolchain fetch` invocation. +/// The resolved settings to use for a `toolchain install` invocation. #[allow(clippy::struct_excessive_bools)] #[derive(Debug, Clone)] pub(crate) struct ToolchainInstallSettings {