mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-02 23:04:37 +00:00
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:
parent
44833801b3
commit
60431ce78c
3 changed files with 3 additions and 3 deletions
|
@ -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>,
|
||||
|
|
|
@ -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()?;
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue