You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
646 B
Rust
25 lines
646 B
Rust
3 years ago
|
use ansi_term::Colour;
|
||
|
use std::process;
|
||
|
|
||
|
pub fn inf(a: std::string::String){
|
||
|
println!("{} {}",
|
||
|
Colour::Purple.bold().paint("❖"),
|
||
|
Colour::White.paint(a));
|
||
|
}
|
||
|
|
||
|
pub fn err_unrec(a: std::string::String) {
|
||
|
println!("{} {} {}",
|
||
|
Colour::Red.bold().paint("✖ Unrecoverable error:"),
|
||
|
Colour::Red.paint(a),
|
||
|
Colour::Red.bold().paint("Terminating."));
|
||
|
process::exit(1);
|
||
|
}
|
||
|
|
||
|
// we havent actually used this one yet
|
||
|
|
||
|
/*pub fn err_rec(a: std::string::String) {
|
||
|
println!("{} {}",
|
||
|
Colour::Yellow.bold().paint("! Warning:"),
|
||
|
Colour::Yellow.paint(a));
|
||
|
}*/
|