mecha10-cli 0.1.47

Mecha10 CLI tool
Documentation
//! Banner and header display utilities

/// Display a section header with a title
#[allow(dead_code)]
pub fn section_header(title: &str) {
    println!();
    println!("━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━");
    println!("{}", title);
    println!("━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━");
    println!();
}

/// Display a welcome banner with title
#[allow(dead_code)]
pub fn welcome_banner(title: &str) {
    println!("\n{}", title);
    println!();
}

/// Display a box banner
#[allow(dead_code)]
pub fn box_banner(title: &str) {
    let border = "".repeat(title.len() + 4);
    println!("\n{}", border);
    println!("{}", title);
    println!("{}\n", border);
}