1
0
mirror of https://github.com/sharkdp/bat synced 2026-08-08 19:41:45 +00:00

Add --pager option

This commit is contained in:
Park Juhyung
2018-10-21 19:52:29 +09:00
committed by David Peter
parent b22a9f8fe3
commit 154186a58d
4 changed files with 29 additions and 10 deletions
+4
View File
@@ -70,6 +70,9 @@ pub struct Config<'a> {
/// File extension/name mappings
pub syntax_mapping: SyntaxMapping,
/// Pager option
pub pager: Option<&'a str>,
}
fn is_truecolor_terminal() -> bool {
@@ -228,6 +231,7 @@ impl App {
),
output_components,
syntax_mapping,
pager: self.matches.value_of("pager"),
})
}