adding in color

This commit is contained in:
talksik
2023-06-01 16:54:57 -07:00
parent 4286fc6876
commit 9c5264f32b
3 changed files with 1793 additions and 1 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
use std::io::Read;
use chrono::prelude::*;
use colored::*;
const TLDR_BASE_URL: &str = "https://tldr.tech/tech";
@@ -51,7 +52,7 @@ fn main() {
let description_element = element.select(&description_selector).next().unwrap();
println!("==================");
println!("{}", title_element.inner_html());
println!("{}", title_element.inner_html().green());
println!("\n");
println!("{}", description_element.inner_html());
println!("\n");