1 2 3 4 5 6 7 8 9 10 11 12 13
use colored::Colorize; pub fn render(word: &str) { if let Some(art) = crate::library::lookup(word) { println!("{}", art.green()); return; } println!( "{}", format!("'{}' not in library yet", word).yellow() ); }