diff options
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 81efe21..3347aef 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,6 +5,7 @@ use std::io::Write; use std::error::Error; use std::process::Command; use clap::{Parser, Subcommand}; +use colored::*; use nom::number::complete::float; use pager::Pager; use serde_derive::{Serialize, Deserialize}; @@ -231,6 +232,7 @@ fn log_with_results(repo: &git2::Repository, } fn list_tests(repo: &git2::Repository, head: &Option<String>) { + colored::control::set_override(true); Pager::with_pager("less -FRX").setup(); let results = results_read(RESULTS).unwrap(); @@ -250,7 +252,7 @@ fn list_tests(repo: &git2::Repository, head: &Option<String>) { println!(""); for i in log.iter() { - print!("{} {:89}", &i.commit[..10], i.commitmsg); + print!("{} {:89}", &i.commit[..10].yellow(), i.commitmsg); for e in columns.iter() { if let Some(v) = i.data_points.get(e.clone()) { |