blob: ac26dab085388fa44cd82902de4c6484f49453dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/// A very simple colorized `cat` clone, using `bat` as a library.
/// See `src/bin/bat` for the full `bat` application.
use bat::PrettyPrinter;
fn main() {
PrettyPrinter::new()
.header(true)
.grid(true)
.line_numbers(true)
.input_files(std::env::args_os().skip(1))
.print()
.unwrap();
}
|