Be more friendly to light terminals (#149)

* Be more friendly to light terminals

* Remove all white()

* Fix botched merge

* fmt

Co-authored-by: Linus Heckemann <git@sphalerite.org>
This commit is contained in:
Ana Hobden 2023-01-05 08:55:25 -08:00 committed by GitHub
parent cefc927ff5
commit b60c4c84d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 6 deletions

View file

@ -18,7 +18,7 @@ pub(crate) async fn confirm(question: impl AsRef<str>, default: bool) -> eyre::R
{are_you_sure} ({yes}/{no}): \
",
question = question.as_ref(),
are_you_sure = "Proceed?".bright_white().bold(),
are_you_sure = "Proceed?".bold(),
no = "N".red().bold(),
yes = "y".green(),
);

View file

@ -196,9 +196,7 @@ impl CommandExecute for Install {
"\
{message}\n\
",
message = "Partial Nix install was uninstalled successfully!"
.white()
.bold(),
message = "Partial Nix install was uninstalled successfully!".bold(),
);
}
} else {

View file

@ -79,7 +79,7 @@ impl InstallPlan {
plan_settings = planner
.settings()?
.into_iter()
.map(|(k, v)| format!("* {k}: {v}", k = k.bold().white()))
.map(|(k, v)| format!("* {k}: {v}", k = k.bold()))
.collect::<Vec<_>>()
.join("\n"),
actions = actions
@ -180,7 +180,7 @@ impl InstallPlan {
plan_settings = planner
.settings()?
.into_iter()
.map(|(k, v)| format!("* {k}: {v}", k = k.bold().white()))
.map(|(k, v)| format!("* {k}: {v}", k = k.bold()))
.collect::<Vec<_>>()
.join("\n"),
actions = actions