Print the change in the configured format.
(&self, change: &Change, hash: &Hash, sequence: Option<u64>, repo: &Repository)
| 692 | |
| 693 | /// Print the change in the configured format. |
| 694 | fn print_change(&self, change: &Change, hash: &Hash, sequence: Option<u64>, repo: &Repository) { |
| 695 | let output = match self.format { |
| 696 | ChangeFormat::Default => self.format_default(change, hash, sequence, repo), |
| 697 | ChangeFormat::Short => self.format_short(change, hash, sequence), |
| 698 | ChangeFormat::Json => self.format_json(change, hash, sequence), |
| 699 | }; |
| 700 | print!("{}", output); |
| 701 | } |
| 702 | } |
| 703 | |
| 704 | impl Default for ChangeCmd { |
no test coverage detected