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