personal-tracker/server/src/util.rs

14 lines
501 B
Rust
Raw Normal View History

use colored::Colorize;
pub fn print_copyright_notice() {
println!("{}", "Personal Tracker Server Copyright (C) 2024 Luke Harding <luke@lukeh990.io>\nThis program comes with ABSOLUTELY NO WARRANTY\nThis is free software, and you are welcome to redistribute it under certain conditions\n".italic());
}
pub fn notice_println(msg: impl Into<String>) {
println!("{}", msg.into().green().bold());
}
2024-05-02 23:49:26 +00:00
pub fn warn_println(msg: impl Into<String>) {
eprintln!("{}", msg.into().yellow().bold());
}