color-output 8.2.12

An atomic output library based on Rust that supports output functionalities through functions, builders, and other methods. It allows customization of text and background colors.
Documentation
use crate::*;

/// Executes the output operation with the given formatting.
///
/// # Arguments
///
/// - `Output` - The output configuration
pub fn output(output: Output) {
    let text: &str = output.text;
    let color: ColorType = output.color;
    let bg_color: ColorType = output.bg_color;
    let bold: bool = output.bold;
    let endl: bool = output.endl;
    let mut task_list: Task<'_> = Task::default();
    task_list.add(Text {
        text,
        color,
        bg_color,
        bold,
        endl,
    });
    task_list.run_all();
}