mirror of
https://github.com/NotAShelf/microfetch.git
synced 2025-11-05 16:12:21 +00:00
shell name & colors in output
This commit is contained in:
parent
81cdc0a281
commit
a44db5e5f3
3 changed files with 37 additions and 20 deletions
|
|
@ -4,3 +4,10 @@ pub const CYAN: &str = "\x1b[36m";
|
|||
pub const GREEN: &str = "\x1b[32m";
|
||||
pub const YELLOW: &str = "\x1b[33m";
|
||||
pub const RED: &str = "\x1b[31m";
|
||||
pub const MAGENTA: &str = "\x1b[35m";
|
||||
|
||||
pub fn print_dots() -> Result<String, std::io::Error> {
|
||||
let colors = format!("{BLUE} {CYAN} {GREEN} {YELLOW} {RED} {MAGENTA} {RESET}");
|
||||
|
||||
Ok(colors)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue