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.
|
|
|
use ansi_term::Colour;
|
|
|
|
use std::process;
|
|
|
|
|
|
|
|
pub fn inf(a: std::string::String){
|
|
|
|
println!("{} {}",
|
|
|
|
Colour::Purple.bold().paint("❖"),
|
|
|
|
Colour::White.bold().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));
|
|
|
|
}
|