cargo_tangle/
utils.rs

1use dialoguer::console::style;
2
3/// Print a section header with consistent styling
4pub fn print_section_header(title: &str) {
5    println!("\n{}", style(format!("━━━ {} ━━━", title)).cyan().bold());
6}
7
8/// Print a success message with an emoji and optional details
9pub fn print_success(message: &str, details: Option<&str>) {
10    println!(
11        "\n{}  {}{}",
12        style("✓").green().bold(),
13        style(message).green(),
14        details.map_or(String::new(), |d| format!("\n   {}", style(d).dim()))
15    );
16}
17
18/// Print an info message with consistent styling
19pub fn print_info(message: &str) {
20    println!("{}", style(format!("ℹ {}", message)).blue());
21}