on 384ea38 help sign in
bat/examples/cat.rs
13 lines 341 B history raw
1/// A very simple colorized `cat` clone, using `bat` as a library.
2/// See `src/bin/bat` for the full `bat` application.
3use bat::PrettyPrinter;
5fn main() {
6 PrettyPrinter::new()
7 .header(true)
8 .grid(true)
9 .line_numbers(true)
10 .input_files(std::env::args_os().skip(1))
11 .print()
12 .unwrap();