Skip to content
Merged
Show file tree
Hide file tree
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
25 changes: 9 additions & 16 deletions src/banner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,12 @@

use colored::Colorize;

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

/// Check if colors should be enabled
Expand Down Expand Up @@ -45,7 +38,7 @@ pub fn print_header(text: &str) {
}
}

/// Print success message with checkmark
/// Print success message
#[allow(dead_code)]
pub fn print_success(text: &str) {
if color_enabled() {
Expand All @@ -55,7 +48,7 @@ pub fn print_success(text: &str) {
}
}

/// Print error message with X
/// Print error message
#[allow(dead_code)]
pub fn print_error(text: &str) {
if color_enabled() {
Expand All @@ -65,7 +58,7 @@ pub fn print_error(text: &str) {
}
}

/// Print info message with info symbol
/// Print info message
#[allow(dead_code)]
pub fn print_info(text: &str) {
if color_enabled() {
Expand All @@ -75,7 +68,7 @@ pub fn print_info(text: &str) {
}
}

/// Print warning message with warning symbol
/// Print warning message
#[allow(dead_code)]
pub fn print_warning(text: &str) {
if color_enabled() {
Expand Down
3 changes: 2 additions & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ use clap_complete::Shell;
#[command(
name = "gitclaw",
about = "Install software from GitHub releases",
version
version,
before_help = crate::banner::BANNER
)]
pub struct Cli {
#[command(subcommand)]
Expand Down
Loading