diff --git a/src/ui/file.rs b/src/ui/file.rs index 43c46231..e9ab2e38 100644 --- a/src/ui/file.rs +++ b/src/ui/file.rs @@ -92,6 +92,19 @@ impl FilePrinter for SimplePrinter { } } + fn print_file_custom(&self, file: Rc>, f: &F) + where F: Fn(Rc>) -> String + { + let s = f(file); + if self.debug { + debug!("{:?}", s); + } else if self.verbose { + info!("{}", s); + } else { + info!("[File]: {}", s); + } + } + } pub struct TablePrinter {