feat: add skip option

resolves #16 and #87
This commit is contained in:
Mario Reder authored and David Peter committed 2020-05-13 18:55:24 +02:00
1 parent 6f73f4c0f0
commit 244f71691d
3 files changed
+67 -9

No files matched your search

+4 -1
View File
@@ -1,5 +1,8 @@
pub(crate) mod input;
pub mod squeezer;
pub use input::*;
use std::io::{self, Read, Write};
use ansi_term::Color;
@@ -407,7 +410,7 @@ impl<'a, Writer: Write> Printer<'a, Writer> {
/// is exhausted.
pub fn print_all<Reader: Read>(
&mut self,
mut reader: Reader
mut reader: Reader,
) -> Result<(), Box<dyn std::error::Error>> {
let mut buffer = [0; BUFFER_SIZE];
'mainloop: loop {