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.``
This commit is contained in:
Nyakku Shigure 2024-06-11 20:00:33 +08:00 committed by GitHub
parent 44833801b3
commit 60431ce78c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -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<String>,

View file

@ -23,7 +23,7 @@ pub(crate) async fn install(
printer: Printer,
) -> Result<ExitStatus> {
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()?;

View file

@ -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 {