(options: &Options)
| 18 | } |
| 19 | |
| 20 | pub fn run(options: &Options) -> Result<()> { |
| 21 | for (i, f) in options.files.iter().enumerate() { |
| 22 | if i != 0 { |
| 23 | println!(); |
| 24 | } |
| 25 | cat_one(f)? |
| 26 | } |
| 27 | Ok(()) |
| 28 | } |
| 29 | |
| 30 | fn cat_one(path: &Path) -> Result<()> { |
| 31 | let buffer = read_to_string(path)?; |