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

View File

@ -19,7 +19,7 @@ impl<'b> Controller<'b> {
}
pub fn run(&self) -> Result<bool> {
let mut output_type = OutputType::from_mode(self.config.paging_mode)?;
let mut output_type = OutputType::from_mode(self.config.paging_mode, self.config.pager)?;
let writer = output_type.handle()?;
let mut no_errors: bool = true;