1/// A program that serializes a Rust structure to YAML and pretty-prints the result
2use bat::{Input, PrettyPrinter};
10 children: Vec<Person>,
15 name: String::from("Anne Mustermann"),
18 children: vec![Person {
19 name: String::from("Max Mustermann"),
26 let bytes = serde_yaml::to_vec(&person).unwrap();
32 .input(Input::from_bytes(&bytes).name("person.yaml").kind("File"))
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list