mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-26 20:16:33 +00:00
rename run => print
This commit is contained in:
1 parent
eee35e54e9
commit
f034be71e7
4 files changed
+9
-8
No files matched your search
@@ -160,10 +160,10 @@ impl<'a> PrettyPrinter<'a> {
|
||||
self
|
||||
}
|
||||
|
||||
/// Pretty-print all specified inputs. This method will drain all stored inputs.
|
||||
/// If you want to call 'run' multiple times, you have to call the appropriate
|
||||
/// Pretty-print all specified inputs. This method will "use" all stored inputs.
|
||||
/// If you want to call 'print' multiple times, you have to call the appropriate
|
||||
/// input_* methods again.
|
||||
pub fn run(&mut self) -> Result<bool> {
|
||||
pub fn print(&mut self) -> Result<bool> {
|
||||
self.config.highlighted_lines =
|
||||
HighlightedLineRanges(LineRanges::from(self.highlighted_lines.clone()));
|
||||
|
||||
|
||||
Reference in new issue
Block a user