mirror of
https://github.com/sharkdp/bat
synced 2026-08-08 19:41:45 +00:00
Add --pager option
This commit is contained in:
committed by
David Peter
parent
b22a9f8fe3
commit
154186a58d
@@ -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"),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user