mirror of https://github.com/sharkdp/bat
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
341 B
Rust
14 lines
341 B
Rust
/// 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();
|
|
}
|