From d4313f421aecd01ecd547ff7bb0cdd0eac4e1cdf Mon Sep 17 00:00:00 2001 From: OBJNULL Date: Fri, 18 Apr 2025 16:25:36 -0400 Subject: [PATCH] Created printer for better formatting --- project/src/printer.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 project/src/printer.rs diff --git a/project/src/printer.rs b/project/src/printer.rs new file mode 100644 index 0000000..9ff88cf --- /dev/null +++ b/project/src/printer.rs @@ -0,0 +1,11 @@ +// Libraries +use colored::{self, Colorize, CustomColor}; + +// Functions +pub fn print_generic(emoji: &str, message: &str) { + println!( + "[{:^3}] {}", + emoji, + message.custom_color(CustomColor::new(200, 200, 200)) + ); +}