2
0
mirror of https://github.com/sharkdp/bat synced 2024-11-08 19:10:41 +00:00
bat/examples/simple.rs

7 lines
177 B
Rust
Raw Normal View History

2020-03-21 20:45:03 +00:00
/// A simple program that prints its own source code using the bat library
use bat::PrettyPrinter;
2019-10-20 19:53:34 +00:00
fn main() {
2020-04-22 19:46:01 +00:00
PrettyPrinter::new().input_file(file!()).print().unwrap();
2019-10-20 19:53:34 +00:00
}