shulkerscript_cli/
terminal_output.rs1use std::fmt::Display;
2
3use colored::Colorize;
4
5pub fn print_info<D>(msg: D)
6where
7 D: Display,
8{
9 println!("[{}] {msg}", "INFO".blue())
10}
11
12pub fn print_success<D>(msg: D)
13where
14 D: Display,
15{
16 println!("[{}] {msg}", "SUCCESS".green())
17}
18
19pub fn print_warning<D>(msg: D)
20where
21 D: Display,
22{
23 println!("[{}] {msg}", "WARNING".yellow())
24}
25
26pub fn print_error<D>(msg: D)
27where
28 D: Display,
29{
30 println!("[{}] {msg}", "ERROR".red())
31}