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
3 changed files with 4 additions and 6 deletions
src
|
@ -18,7 +18,7 @@ pub(crate) async fn confirm(question: impl AsRef<str>, default: bool) -> eyre::R
|
||||||
{are_you_sure} ({yes}/{no}): \
|
{are_you_sure} ({yes}/{no}): \
|
||||||
",
|
",
|
||||||
question = question.as_ref(),
|
question = question.as_ref(),
|
||||||
are_you_sure = "Proceed?".bright_white().bold(),
|
are_you_sure = "Proceed?".bold(),
|
||||||
no = "N".red().bold(),
|
no = "N".red().bold(),
|
||||||
yes = "y".green(),
|
yes = "y".green(),
|
||||||
);
|
);
|
||||||
|
|
|
@ -196,9 +196,7 @@ impl CommandExecute for Install {
|
||||||
"\
|
"\
|
||||||
{message}\n\
|
{message}\n\
|
||||||
",
|
",
|
||||||
message = "Partial Nix install was uninstalled successfully!"
|
message = "Partial Nix install was uninstalled successfully!".bold(),
|
||||||
.white()
|
|
||||||
.bold(),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -79,7 +79,7 @@ impl InstallPlan {
|
||||||
plan_settings = planner
|
plan_settings = planner
|
||||||
.settings()?
|
.settings()?
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.map(|(k, v)| format!("* {k}: {v}", k = k.bold().white()))
|
.map(|(k, v)| format!("* {k}: {v}", k = k.bold()))
|
||||||
.collect::<Vec<_>>()
|
.collect::<Vec<_>>()
|
||||||
.join("\n"),
|
.join("\n"),
|
||||||
actions = actions
|
actions = actions
|
||||||
|
@ -180,7 +180,7 @@ impl InstallPlan {
|
||||||
plan_settings = planner
|
plan_settings = planner
|
||||||
.settings()?
|
.settings()?
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.map(|(k, v)| format!("* {k}: {v}", k = k.bold().white()))
|
.map(|(k, v)| format!("* {k}: {v}", k = k.bold()))
|
||||||
.collect::<Vec<_>>()
|
.collect::<Vec<_>>()
|
||||||
.join("\n"),
|
.join("\n"),
|
||||||
actions = actions
|
actions = actions
|
||||||
|
|
Loading…
Reference in a new issue