personal-tracker/server/src/util.rs

14 lines
501 B
Rust

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());
}
pub fn warn_println(msg: impl Into<String>) {
eprintln!("{}", msg.into().yellow().bold());
}