Print the change in the configured format.
(&self, change: &Change, hash: &Hash, sequence: Option<u64>, repo: &Repository)
| 706 | |
| 707 | /// Print the change in the configured format. |
| 708 | fn print_change(&self, change: &Change, hash: &Hash, sequence: Option<u64>, repo: &Repository) { |
| 709 | let output = match self.format { |
| 710 | ChangeFormat::Default => self.format_default(change, hash, sequence, repo), |
| 711 | ChangeFormat::Short => self.format_short(change, hash, sequence), |
| 712 | ChangeFormat::Json => self.format_json(change, hash, sequence), |
| 713 | }; |
| 714 | print!("{}", output); |
| 715 | } |
| 716 | } |
| 717 | |
| 718 | /// Extract a human-readable one-liner from a provenance node's detail JSON. |
no test coverage detected