terminal_tools_plus_plus 0.2.1

A collection of enhanced utilities for terminal manipulation and CLI development in Rust.
Documentation
1
2
3
4
5
6
7
8
use colored::*;

/// Prints a centered banner with a title.
pub fn print_banner(title: &str) {
    println!("{}", "=".repeat(40).yellow());
    println!("{:^40}", title.bright_magenta().bold());
    println!("{}", "=".repeat(40).yellow());
}