terminal_tools_plus_plus 0.2.1

A collection of enhanced utilities for terminal manipulation and CLI development in Rust.
Documentation
use colored::*;

/// Represents the status of a log message.
#[derive(Copy, Clone)]
pub enum Status {
    Ok,
    Error,
    Info,
}

/// Prints a colored log message with a status label.
pub fn log_status(message: &str, status: Status) {
    let label = match status {
        Status::Ok => "SUCCESS".green().bold(),
        Status::Error => "ERROR".red().bold(),
        Status::Info => "INFO".blue().bold(),
    };

    println!("[{}] {}", label, message);
}