srcdmp 0.1.0-alpha.1

Amazing code snapshot tool and library
Documentation
use farben::cprintln;

/// Print a formatted status line to the terminal.
///
/// Uses ANSI escape codes (via `farben`) to colorize the output.
/// The format is `[{style}]{:>12}[/] {message}` where the verb
/// is right-aligned to 12 columns.
fn status(verb: &str, style: &str, message: &str) {
    cprintln!("[{}]{:>12}[/] {}", style, verb, message);
}

/// Emit a "Packing" status message (teal, bold).
pub fn packing(msg: &str) {
    status("Packing", "bold rgb(0,210,180)", msg);
}

/// Emit a "Packed" status message (teal, bold).
pub fn packed(msg: &str) {
    status("Packed", "bold rgb(0,210,180)", msg);
}

/// Emit a "Writing" status message (teal, bold).
pub fn writing(msg: &str) {
    status("Writing", "bold rgb(0,210,180)", msg);
}

/// Emit an "Unpacking" status message (teal, bold).
pub fn unpacking(msg: &str) {
    status("Unpacking", "bold rgb(0,210,180)", msg);
}

/// Emit a "Finished" status message (teal, bold).
pub fn finished(msg: &str) {
    status("Finished", "bold rgb(0,210,180)", msg);
}

/// Emit a "Skipping" status message (dimmed).
pub fn skipping(msg: &str) {
    status("Skipping", "dim", msg);
}

/// Emit an "Opening" status message (teal, bold).
pub fn opening(msg: &str) {
    status("Opening", "bold rgb(0,210,180)", msg);
}

/// Emit an "Info" status message (teal, bold).
pub fn info(msg: &str) {
    status("Info", "bold rgb(0,210,180)", msg);
}

/// Emit an "Error" status message (red, bold).
pub fn error(msg: &str) {
    status("Error", "bold red", msg);
}

/// Emit a "Verified" status message (teal, bold).
pub fn verified(msg: &str) {
    status("Verified", "bold rgb(0,210,180)", msg);
}