mirror of
https://github.com/yuhkix/wuwa-downloader.git
synced 2025-06-04 08:53:41 +00:00
28 lines
559 B
Rust
28 lines
559 B
Rust
use colored::*;
|
|
|
|
#[derive(Clone, Copy)]
|
|
pub struct Status;
|
|
|
|
impl Status {
|
|
pub fn info() -> ColoredString {
|
|
"[*]".cyan()
|
|
}
|
|
pub fn success() -> ColoredString {
|
|
"[+]".green()
|
|
}
|
|
pub fn warning() -> ColoredString {
|
|
"[!]".yellow()
|
|
}
|
|
pub fn error() -> ColoredString {
|
|
"[-]".red()
|
|
}
|
|
pub fn question() -> ColoredString {
|
|
"[?]".blue()
|
|
}
|
|
pub fn progress() -> ColoredString {
|
|
"[→]".purple()
|
|
}
|
|
pub fn matched() -> ColoredString {
|
|
"[↓]".bright_purple()
|
|
}
|
|
}
|