Print entries in the configured format. # Arguments `entries` - History entries to print
(&self, entries: &[HistoryEntry])
| 409 | /// |
| 410 | /// * `entries` - History entries to print |
| 411 | fn print_entries(&self, entries: &[HistoryEntry]) { |
| 412 | let hash_length = self.get_hash_length(); |
| 413 | |
| 414 | let output = match self.format { |
| 415 | LogFormat::Default => self.format_default(entries, hash_length), |
| 416 | LogFormat::Short => self.format_short(entries, hash_length), |
| 417 | LogFormat::Oneline => self.format_oneline(entries, hash_length), |
| 418 | LogFormat::Json => self.format_json(entries), |
| 419 | }; |
| 420 | |
| 421 | print!("{}", output); |
| 422 | } |
| 423 | |
| 424 | /// Print empty history message. |
| 425 | /// |
no test coverage detected