Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
CLI art
Richie McIlroyeac9766dbf96
diff --git a/apps/cli/src/main.rs b/apps/cli/src/main.rsindex 202edfe56..0782da5b3 100644--- a/apps/cli/src/main.rs+++ b/apps/cli/src/main.rs@@ -28,105 +28,63 @@ const ANSI_RESET: &str = "\x1b[0m";const ANSI_BOLD: &str = "\x1b[1m";const ANSI_BLUE: &str = "\x1b[38;2;71;133;255m";const ANSI_SOFT_BLUE: &str = "\x1b[38;2;173;201;255m";+const ANSI_WHITE: &str = "\x1b[38;2;255;255;255m";const ANSI_MUTED: &str = "\x1b[38;2;118;128;145m";const WELCOME_LINES: &[&[(&str, &str)]] = &[+ &[(ANSI_BLUE, " ██████████")],&[- (ANSI_MUTED, " .----------------------. "),- (ANSI_BOLD, " _____"),+ (ANSI_BLUE, " ███"),+ (ANSI_SOFT_BLUE, "████████"),+ (ANSI_BLUE, "███"),+ (ANSI_BOLD, " ____"),],&[- (ANSI_MUTED, " .' '. "),- (ANSI_BOLD, " / ____|__ _ _ __"),+ (ANSI_BLUE, " ███"),+ (ANSI_SOFT_BLUE, "██"),+ (ANSI_WHITE, "████████"),+ (ANSI_SOFT_BLUE, "██"),+ (ANSI_BLUE, "███"),+ (ANSI_BOLD, " / ___|__ _ _ __"),],&[- (ANSI_MUTED, " / \\ "),- (ANSI_BOLD, "| | / _` | '_ \\"),+ (ANSI_BLUE, " ██"),+ (ANSI_SOFT_BLUE, "██"),+ (ANSI_WHITE, "██████████"),+ (ANSI_SOFT_BLUE, "██"),+ (ANSI_BLUE, "██"),+ (ANSI_BOLD, " | | / _` | '_ \\"),],&[- (ANSI_MUTED, " | | "),- (ANSI_BOLD, "| |__| (_| | |_) |"),+ (ANSI_BLUE, " ██"),+ (ANSI_SOFT_BLUE, "█"),+ (ANSI_WHITE, "████████████"),+ (ANSI_SOFT_BLUE, "█"),+ (ANSI_BLUE, "██"),+ (ANSI_BOLD, " | |__| (_| | |_) |"),],&[- (ANSI_MUTED, " | "),- (ANSI_BLUE, ".----------."),- (ANSI_MUTED, " | "),- (ANSI_BOLD, "\\_____\\__,_| .__/"),+ (ANSI_BLUE, " ██"),+ (ANSI_SOFT_BLUE, "██"),+ (ANSI_WHITE, "██████████"),+ (ANSI_SOFT_BLUE, "██"),+ (ANSI_BLUE, "██"),+ (ANSI_BOLD, " \\____\\__,_| .__/"),],&[- (ANSI_MUTED, " | "),- (ANSI_BLUE, ".-' '-."),- (ANSI_MUTED, " | "),- (ANSI_BOLD, "|_|"),+ (ANSI_BLUE, " ███"),+ (ANSI_SOFT_BLUE, "██"),+ (ANSI_WHITE, "████████"),+ (ANSI_SOFT_BLUE, "██"),+ (ANSI_BLUE, "███"),+ (ANSI_BOLD, " |_|"),],&[- (ANSI_MUTED, " | "),- (ANSI_BLUE, ".' "),- (ANSI_SOFT_BLUE, ".------."),- (ANSI_BLUE, " '."),- (ANSI_MUTED, " |"),+ (ANSI_BLUE, " ███"),+ (ANSI_SOFT_BLUE, "████████"),+ (ANSI_BLUE, "███"),],- &[- (ANSI_MUTED, " | "),- (ANSI_BLUE, "/ "),- (ANSI_SOFT_BLUE, "/ \\"),- (ANSI_BLUE, " \\"),- (ANSI_MUTED, " |"),- ],- &[- (ANSI_MUTED, " | "),- (ANSI_BLUE, "| "),- (ANSI_SOFT_BLUE, "| "),- (ANSI_RESET, ".----."),- (ANSI_SOFT_BLUE, " |"),- (ANSI_BLUE, " |"),- (ANSI_MUTED, " |"),- ],- &[- (ANSI_MUTED, " | "),- (ANSI_BLUE, "| "),- (ANSI_SOFT_BLUE, "| "),- (ANSI_RESET, "( )"),- (ANSI_SOFT_BLUE, " |"),- (ANSI_BLUE, " |"),- (ANSI_MUTED, " |"),- ],- &[- (ANSI_MUTED, " | "),- (ANSI_BLUE, "| "),- (ANSI_SOFT_BLUE, "| "),- (ANSI_RESET, "'----'"),- (ANSI_SOFT_BLUE, " |"),- (ANSI_BLUE, " |"),- (ANSI_MUTED, " |"),- ],- &[- (ANSI_MUTED, " | "),- (ANSI_BLUE, "\\ "),- (ANSI_SOFT_BLUE, "\\ /"),- (ANSI_BLUE, " /"),- (ANSI_MUTED, " |"),- ],- &[- (ANSI_MUTED, " | "),- (ANSI_BLUE, "'. "),- (ANSI_SOFT_BLUE, "'------'"),- (ANSI_BLUE, " .'"),- (ANSI_MUTED, " |"),- ],- &[- (ANSI_MUTED, " | "),- (ANSI_BLUE, "'-. .-'"),- (ANSI_MUTED, " |"),- ],- &[- (ANSI_MUTED, " | "),- (ANSI_BLUE, "'----------'"),- (ANSI_MUTED, " |"),- ],- &[(ANSI_MUTED, " \\ /")],- &[(ANSI_MUTED, " '. .'")],- &[(ANSI_MUTED, " '----------------------'")],+ &[(ANSI_BLUE, " ██████████")],&[],&[(ANSI_BOLD,diff --git a/apps/cli/tests/cli.rs b/apps/cli/tests/cli.rsindex 9291f2de0..c54529288 100644--- a/apps/cli/tests/cli.rs+++ b/apps/cli/tests/cli.rs@@ -61,11 +61,8 @@ fn no_args_prints_branded_intro() {assert!(output.status.success(), "stderr: {}", stderr(&output));assert!(stderr(&output).is_empty(), "stderr: {}", stderr(&output));let text = stdout(&output);- assert!(text.contains(".----------------------."), "stdout: {text}");- assert!(text.contains(".----------."), "stdout: {text}");- assert!(text.contains(".------."), "stdout: {text}");- assert!(text.contains("( )"), "stdout: {text}");- assert!(text.contains("/ ____|__ _ _ __"), "stdout: {text}");+ assert!(text.contains("██████████████████"), "stdout: {text}");+ assert!(text.contains("/ ___|__ _ _ __"), "stdout: {text}");assert!(text.contains("cap record start --screen <id> --detach"));assert!(text.contains("cap --help"));}