mirror of
https://github.com/sharkdp/bat.git
synced 2025-08-09 23:57:48 +02:00
Add *_with_name methods
This commit is contained in:
@ -27,7 +27,9 @@ fn main() {
|
||||
PrettyPrinter::new()
|
||||
.language("yaml")
|
||||
.line_numbers(true)
|
||||
.input_from_bytes(&bytes)
|
||||
.grid(true)
|
||||
.header(true)
|
||||
.input_from_bytes_with_name(&bytes, "person.yaml")
|
||||
.print()
|
||||
.unwrap();
|
||||
}
|
||||
|
Reference in New Issue
Block a user