summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-01-10 08:22:52 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-01-10 08:22:52 -0500
commita8b648b61abd318cba28c5a0326b75bc7dc2c0f3 (patch)
treeceecd97272f50f9ba9b36714af80443868f3f9e4 /src
parentc30a74571b52703a2623b37833bdbe0e734f9ef9 (diff)
Pipe log view through less
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'src')
-rw-r--r--src/main.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 5f00577..81efe21 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -6,6 +6,7 @@ use std::error::Error;
use std::process::Command;
use clap::{Parser, Subcommand};
use nom::number::complete::float;
+use pager::Pager;
use serde_derive::{Serialize, Deserialize};
use toml;
@@ -230,6 +231,8 @@ fn log_with_results(repo: &git2::Repository,
}
fn list_tests(repo: &git2::Repository, head: &Option<String>) {
+ Pager::with_pager("less -FRX").setup();
+
let results = results_read(RESULTS).unwrap();
let log = log_with_results(repo, head, &results).unwrap();