mirror of
https://github.com/sharkdp/bat
synced 2024-11-16 00:47:58 +00:00
13 lines
341 B
Rust
13 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();
|
|
}
|