Skip to content

Commit

Permalink
Avoid using white coloring in terminal output (#1576)
Browse files Browse the repository at this point in the history
Closes #1489
  • Loading branch information
zanieb authored Feb 17, 2024
1 parent 340cb67 commit bb7c3e6
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions crates/uv/src/commands/pip_install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
)?;
}
Expand All @@ -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()
)?;
}
Expand Down
4 changes: 2 additions & 2 deletions crates/uv/src/commands/pip_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
)?;
}
Expand All @@ -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()
)?;
}
Expand Down
2 changes: 1 addition & 1 deletion crates/uv/src/commands/pip_uninstall.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
)?;
}
Expand Down
2 changes: 1 addition & 1 deletion crates/uv/src/commands/venv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()?;
Expand Down
4 changes: 2 additions & 2 deletions crates/uv/src/confirm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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" })
Expand All @@ -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()
Expand Down

0 comments on commit bb7c3e6

Please sign in to comment.