Skip to content

Commit a716ce7

Browse files
art049claude
andcommitted
feat(cli): style the ASCII banner with CodSpeed orange
Render the logo in bold CodSpeed orange (#FF8700) with a dim separator line and styled version tag below. Output via eprintln (stderr) for consistency with other UI output. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 63ec5b2 commit a716ce7

1 file changed

Lines changed: 14 additions & 7 deletions

File tree

src/cli/shared.rs

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,30 @@
11
use crate::VERSION;
2+
use crate::local_logger::CODSPEED_U8_COLOR_CODE;
23
use crate::prelude::*;
34
use crate::run_environment::interfaces::RepositoryProvider;
45
use crate::runner_mode::{RunnerMode, load_shell_session_mode};
56
use clap::Args;
67
use clap::ValueEnum;
8+
use console::style;
79
use std::path::PathBuf;
810

911
pub(crate) fn show_banner() {
10-
let banner = format!(
11-
r#"
12-
______ __ _____ __
12+
let logo = r#" ______ __ _____ __
1313
/ ____/____ ____/ // ___/ ____ ___ ___ ____/ /
1414
/ / / __ \ / __ / \__ \ / __ \ / _ \ / _ \ / __ /
1515
/ /___ / /_/ // /_/ / ___/ // /_/ // __// __// /_/ /
1616
\____/ \____/ \__,_/ /____// .___/ \___/ \___/ \__,_/
17-
https://codspeed.io /_/ runner v{VERSION}
18-
"#
19-
);
20-
println!("{banner}");
17+
/_/"#;
18+
19+
let version_tag = style(format!("v{VERSION}")).bold();
20+
let url = style("codspeed.io").color256(CODSPEED_U8_COLOR_CODE);
21+
let separator = style("─".repeat(52)).dim();
22+
23+
eprintln!();
24+
eprintln!("{}", style(logo).color256(CODSPEED_U8_COLOR_CODE).bold());
25+
eprintln!(" {separator}");
26+
eprintln!(" {url} {version_tag}");
27+
eprintln!();
2128
debug!("codspeed v{VERSION}");
2229
}
2330

0 commit comments

Comments
 (0)