From ecf780abc166414a41c5194f893907ac9b381555 Mon Sep 17 00:00:00 2001 From: clawdeeo Date: Wed, 22 Apr 2026 13:23:53 +0000 Subject: [PATCH] fix: use simpler figlet banner and show on help - Replace complex figlet with simpler ASCII art using standard characters - Banner now clearly reads 'gitclaw' on all terminals - Add banner to help command via before_help in clap - Banner still shows on all other commands (install, list, etc.) --- src/banner.rs | 25 +++++++++---------------- src/cli.rs | 3 ++- 2 files changed, 11 insertions(+), 17 deletions(-) diff --git a/src/banner.rs b/src/banner.rs index 33265de..6827a95 100644 --- a/src/banner.rs +++ b/src/banner.rs @@ -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 @@ -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() { @@ -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() { @@ -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() { @@ -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() { diff --git a/src/cli.rs b/src/cli.rs index ea0e18c..d673477 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -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)]