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::*;

pub fn __println_text(color: ColorType, bg_color: ColorType, text: &str) {
    let binding: String = format!("[{}]", time());
    let mut time_output_builder: OutputBuilder<'_> = OutputBuilder::new();
    let mut text_output_builder: OutputBuilder<'_> = OutputBuilder::new();
    let time_output: Output<'_> = time_output_builder
        .text(&binding)
        .bold(true)
        .color(color)
        .bg_color(bg_color)
        .build();
    let lines = text.lines().peekable();
    for line in lines {
        let mut output_list_builder = OutputListBuilder::new();
        output_list_builder.add(time_output);
        let text_output: Output<'_> = text_output_builder.text(line).bold(true).endl(true).build();
        output_list_builder.add(text_output);
        output_list_builder.run();
    }
}