Skip to content

Commit

Permalink
feat: colorize banner
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Dec 28, 2024
1 parent 51fa75e commit ad3a5f0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/cli/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use crate::cli::self_update::SelfUpdate;
#[cfg(not(test))]
use crate::config::Settings;
use crate::file::modified_duration;
use crate::ui::style;
use crate::{dirs, duration, env, file};

/// Display the version of mise
Expand Down Expand Up @@ -83,8 +84,7 @@ pub fn print_version_if_requested(args: &[String]) -> std::io::Result<bool> {

fn show_version() -> std::io::Result<()> {
if console::user_attended() {
miseprintln!(
"{}",
let banner = style::nred(
r#"
_ __
____ ___ (_)_______ ___ ____ ____ / /___ _________
Expand All @@ -93,8 +93,9 @@ fn show_version() -> std::io::Result<()> {
/_/ /_/ /_/_/____/\___/ \___/_/ /_/ / .___/_/\__,_/\___/\___/
/_/
"#
.trim_start_matches("\n")
.trim_start_matches("\n"),
);
miseprintln!("{banner}");
}
miseprintln!("{}", *VERSION);
Ok(())
Expand Down

0 comments on commit ad3a5f0

Please sign in to comment.