The dotfiles manager.
style: big money ascii art
2 files changed, +12 -0
+9-0ascii.txt
| @@ -0,0 +1,9 @@ | ||
| 1 | + | |
| 2 | +$$$$$$$\ $$$$$$\ $$$$$$$$\ $$\ $$\ $$\ $$\ $$$$$$$\ | |
| 3 | +$$ __$$\ $$ __$$\\__$$ __| $$ | $$ |$$ | $$ |$$ __$$\ | |
| 4 | +$$ | $$ |$$ / $$ | $$ | $$ | $$ |$$ | $$ |$$ | $$ | | |
| 5 | +$$ | $$ |$$ | $$ | $$ | $$$$$$$$ |$$ | $$ |$$$$$$$\ | | |
| 6 | +$$ | $$ |$$ | $$ | $$ | $$ __$$ |$$ | $$ |$$ __$$\ | |
| 7 | +$$ | $$ |$$ | $$ | $$ | $$ | $$ |$$ | $$ |$$ | $$ | | |
| 8 | +$$$$$$$ | $$$$$$ | $$ | $$ | $$ |\$$$$$$ |$$$$$$$ | | |
| 9 | +\_______/ \______/ \__| \__| \__| \______/ \_______/ |
+3-0src/main.rs
| @@ -17,6 +17,7 @@ const DEFAULT_DOTHUB_PATH: &str = ".local/share/dothub"; | ||
| 17 | 17 | const DEFAULT_HUB_URL: &str = |
| 18 | 18 | "https://raw.githubusercontent.com/huncholane/dothub/main/hub.yml"; |
| 19 | 19 | const GH_TOKEN_HELP_URL: &str = "https://github.com/settings/personal-access-tokens"; |
| 20 | +const ASCII_BANNER: &str = include_str!("../ascii.txt"); | |
| 20 | 21 | |
| 21 | 22 | #[derive(Parser)] |
| 22 | 23 | #[command( |
| @@ -408,6 +409,8 @@ enum FlexEntry { | ||
| 408 | 409 | } |
| 409 | 410 | |
| 410 | 411 | fn cmd_hub(types: Vec<String>, url: Option<String>) -> Result<()> { |
| 412 | + // Print ASCII banner at the top | |
| 413 | + println!("{}", ASCII_BANNER); | |
| 411 | 414 | let url = url.as_deref().unwrap_or(DEFAULT_HUB_URL); |
| 412 | 415 | let yaml = match fetch_text(url) { |
| 413 | 416 | Ok(text) => text, |