Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 15 additions & 17 deletions src/banner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,19 @@

use colored::Colorize;

/// ASCII art banner for gitclaw
#[allow(dead_code)]
/// ASCII art banner for gitclaw (simpler version without problematic backslash characters)
pub const BANNER: &str = r#"
______ __ __ ________ __ __ ______ __ __
/ \ / | / |/ |/ \ / | / \ / | / |
/$$$$$$ |$$ | $$ |$$$$$$$$/ $$ \ /$$ |/$$$$$$ |$$ | $$ |
$$ |__$$ |$$ | $$ | $$ | $$$ \ /$$$ |$$ | $$/ $$ | $$ |
$$ $$ |$$ | $$ | $$ | $$$$ /$$$$ |$$ | $$ | $$ |
$$$$$$$$ |$$ | $$ | $$ | $$ $$ $$/$$ |$$ | __ $$ | $$ |
$$ | $$ |$$ \__$$ | $$ | $$ |$$$/ $$ |$$ \__/ |$$ \__$$ |
$$ | $$ |$$ $$/ $$ | $$ | $/ $$ |$$ $$/ $$ $$ |
$$/ $$/ $$$$$$/ $$/ $$/ $$/ $$$$$$/ $$$$$$$ |
/ \__$$ |
$$ $$/
$$$$$$/
/ | / | / |/ |/ | / | / | / | / |
/$$$$$$ |$$ | $$ |$$$$$$$$/ $$ | /$$ |/$$$$$$ |$$ | $$ |
$$ |__$$ |$$ | $$ | $$ | $$ | /$$$ |$$ | $$/ $$ | $$ |
$$ $$ |$$ | $$ | $$ | $$ | /$$$$ |$$ | $$ | $$ |
$$$$$$$$ |$$ | $$ | $$ | $$ |$$/$$ |$$ | __ $$ | $$ |
$$ | $$ |$$ |__$$ | $$ | $$ |$$$/ $$ |$$ |__/ |$$ |__$$ |
$$ | $$ |$$ $$/ $$ | $$ | $/ $$ |$$ $$/ $$ $$/
$$/ $$/ $$$$$$/ $$/ $$/ $$/ $$$$$$/ $$$$$$$/
/ |___
$$/
"#;

/// Check if colors should be enabled
Expand Down Expand Up @@ -51,7 +49,7 @@ pub fn print_header(text: &str) {
#[allow(dead_code)]
pub fn print_success(text: &str) {
if color_enabled() {
println!("{} {}", "".green().bold(), text);
println!("{} {}", "[OK]".green().bold(), text);
} else {
println!("[OK] {}", text);
}
Expand All @@ -61,7 +59,7 @@ pub fn print_success(text: &str) {
#[allow(dead_code)]
pub fn print_error(text: &str) {
if color_enabled() {
eprintln!("{} {}", "".red().bold(), text);
eprintln!("{} {}", "[ERR]".red().bold(), text);
} else {
eprintln!("[ERROR] {}", text);
}
Expand All @@ -71,7 +69,7 @@ pub fn print_error(text: &str) {
#[allow(dead_code)]
pub fn print_info(text: &str) {
if color_enabled() {
println!("{} {}", "".blue(), text);
println!("{} {}", "[INFO]".blue(), text);
} else {
println!("[INFO] {}", text);
}
Expand All @@ -81,7 +79,7 @@ pub fn print_info(text: &str) {
#[allow(dead_code)]
pub fn print_warning(text: &str) {
if color_enabled() {
println!("{} {}", "".yellow(), text);
println!("{} {}", "[WARN]".yellow(), text);
} else {
println!("[WARN] {}", text);
}
Expand Down
Loading