Skip to content

Commit 42e21d9

Browse files
feat: revert logo changes
Also switch back to stdout to avoid the occasinal group header print in the middle of the logo.
1 parent bd91957 commit 42e21d9

3 files changed

Lines changed: 7 additions & 16 deletions

File tree

src/cli/shared.rs

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,26 @@
11
use super::experimental::ExperimentalArgs;
22
use crate::VERSION;
33
use crate::executor::config::SimulationTool;
4-
use crate::local_logger::CODSPEED_U8_COLOR_CODE;
5-
use crate::local_logger::icons::Icon;
64
use crate::prelude::*;
75
use crate::run_environment::interfaces::RepositoryProvider;
86
use crate::runner_mode::{RunnerMode, load_shell_session_mode};
97
use clap::Args;
108
use clap::ValueEnum;
11-
use console::style;
9+
use std::io::Write;
1210
use std::path::PathBuf;
1311

1412
pub(crate) fn show_banner() {
15-
let logo = r#" ______ __ _____ __
13+
let banner = format!(
14+
r#"
15+
______ __ _____ __
1616
/ ____/____ ____/ // ___/ ____ ___ ___ ____/ /
1717
/ / / __ \ / __ / \__ \ / __ \ / _ \ / _ \ / __ /
1818
/ /___ / /_/ // /_/ / ___/ // /_/ // __// __// /_/ /
1919
\____/ \____/ \__,_/ /____// .___/ \___/ \___/ \__,_/
20-
/_/"#;
21-
22-
let version_tag = style(format!("v{VERSION}")).bold();
23-
let url = style("codspeed.io").color256(CODSPEED_U8_COLOR_CODE);
24-
let separator = style(Icon::Separator.to_string().repeat(52)).dim();
25-
26-
eprintln!(
27-
"\n{}\n {separator}\n {url} {version_tag}\n",
28-
style(logo).color256(CODSPEED_U8_COLOR_CODE).bold()
20+
https://codspeed.io /_/ runner v{VERSION}
21+
"#
2922
);
23+
println!("{banner}");
3024
debug!("codspeed v{VERSION}");
3125
}
3226

src/local_logger/icons.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ pub enum Icon {
3232
BoxTLeft,
3333

3434
// Miscellaneous
35-
Separator,
3635
Ellipsis,
3736
}
3837

@@ -70,7 +69,6 @@ impl fmt::Display for Icon {
7069
Icon::BoxTDown => "\u{252c}", // ┬
7170
Icon::BoxTRight => "\u{251c}", // ├
7271
Icon::BoxTLeft => "\u{2524}", // ┤
73-
Icon::Separator => "\u{2500}", // ─
7472
Icon::Ellipsis => "\u{2026}", // …
7573
};
7674
f.write_str(ch)

src/local_logger/snapshots/codspeed_runner__local_logger__icons__tests__icon_rendering.snap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,4 @@ BoxVertical: │
2222
BoxTDown: ┬
2323
BoxTRight: ├
2424
BoxTLeft: ┤
25-
Separator: ─
2625
Ellipsis: …

0 commit comments

Comments
 (0)