forked from lix-project/lix-installer
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:
parent
cefc927ff5
commit
b60c4c84d0
|
@ -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(),
|
||||
);
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue