@@ -1,16 +1,12 @@
11/// A very simple colorized `cat` clone, using `bat` as a library.
22/// See `src/bin/bat` for the full `bat` application.
3−use bat::{PrettyPrinter, StyleComponent};
4−use console::Term;
3+use bat::PrettyPrinter;
54
65fn main() {
76 PrettyPrinter::new()
8− .term_width(Term::stdout().size().1 as usize)
9− .style_components(&[
10− StyleComponent::Header,
11− StyleComponent::Grid,
12− StyleComponent::LineNumbers,
13− ])
7+ .header(true)
8+ .grid(true)
9+ .line_numbers(true)
1410 .input_files(std::env::args_os().skip(1))
1511 .print()
1612 .expect("no errors");