Avoid using white coloring in terminal output (#1576)
Closes https://github.com/astral-sh/uv/issues/1489
This commit is contained in:
@@ -662,7 +662,7 @@ async fn install(
|
||||
printer,
|
||||
" {} {}{}",
|
||||
"+".green(),
|
||||
event.dist.name().as_ref().white().bold(),
|
||||
event.dist.name().as_ref().bold(),
|
||||
event.dist.installed_version().to_string().dimmed()
|
||||
)?;
|
||||
}
|
||||
@@ -671,7 +671,7 @@ async fn install(
|
||||
printer,
|
||||
" {} {}{}",
|
||||
"-".red(),
|
||||
event.dist.name().as_ref().white().bold(),
|
||||
event.dist.name().as_ref().bold(),
|
||||
event.dist.installed_version().to_string().dimmed()
|
||||
)?;
|
||||
}
|
||||
|
||||
@@ -333,7 +333,7 @@ pub(crate) async fn pip_sync(
|
||||
printer,
|
||||
" {} {}{}",
|
||||
"+".green(),
|
||||
event.dist.name().as_ref().white().bold(),
|
||||
event.dist.name().as_ref().bold(),
|
||||
event.dist.installed_version().to_string().dimmed()
|
||||
)?;
|
||||
}
|
||||
@@ -342,7 +342,7 @@ pub(crate) async fn pip_sync(
|
||||
printer,
|
||||
" {} {}{}",
|
||||
"-".red(),
|
||||
event.dist.name().as_ref().white().bold(),
|
||||
event.dist.name().as_ref().bold(),
|
||||
event.dist.installed_version().to_string().dimmed()
|
||||
)?;
|
||||
}
|
||||
|
||||
@@ -156,7 +156,7 @@ pub(crate) async fn pip_uninstall(
|
||||
printer,
|
||||
" {} {}{}",
|
||||
"-".red(),
|
||||
distribution.name().as_ref().white().bold(),
|
||||
distribution.name().as_ref().bold(),
|
||||
distribution.installed_version().to_string().dimmed()
|
||||
)?;
|
||||
}
|
||||
|
||||
@@ -181,7 +181,7 @@ async fn venv_impl(
|
||||
printer,
|
||||
" {} {}{}",
|
||||
"+".green(),
|
||||
distribution.name().as_ref().white().bold(),
|
||||
distribution.name().as_ref().bold(),
|
||||
distribution.version_or_url().dimmed()
|
||||
)
|
||||
.into_diagnostic()?;
|
||||
|
||||
@@ -22,7 +22,7 @@ pub(crate) fn confirm(message: &str, term: &Term, default: bool) -> Result<bool>
|
||||
let prompt = format!(
|
||||
"{} {} {} {} {}",
|
||||
style("?".to_string()).for_stderr().yellow(),
|
||||
style(message).for_stderr().white().bold(),
|
||||
style(message).for_stderr().bold(),
|
||||
style("[y/n]").for_stderr().black().bright(),
|
||||
style("›").for_stderr().black().bright(),
|
||||
style(if default { "yes" } else { "no" })
|
||||
@@ -49,7 +49,7 @@ pub(crate) fn confirm(message: &str, term: &Term, default: bool) -> Result<bool>
|
||||
let report = format!(
|
||||
"{} {} {} {}",
|
||||
style("✔".to_string()).for_stderr().green(),
|
||||
style(message).for_stderr().white().bold(),
|
||||
style(message).for_stderr().bold(),
|
||||
style("·").for_stderr().black().bright(),
|
||||
style(if response { "yes" } else { "no" })
|
||||
.for_stderr()
|
||||
|
||||
Reference in New Issue
Block a user