Print the change in the configured format.
(&self, change: &Change, hash: &Hash, sequence: Option<u64>, repo: &Repository)
| 662 | |
| 663 | /// Print the change in the configured format. |
| 664 | fn print_change(&self, change: &Change, hash: &Hash, sequence: Option<u64>, repo: &Repository) { |
| 665 | let output = match self.format { |
| 666 | ChangeFormat::Default => self.format_default(change, hash, sequence, repo), |
| 667 | ChangeFormat::Short => self.format_short(change, hash, sequence), |
| 668 | ChangeFormat::Json => self.format_json(change, hash, sequence), |
| 669 | }; |
| 670 | print!("{}", output); |
| 671 | } |
| 672 | } |
| 673 | |
| 674 | /// Extract a human-readable one-liner from a provenance node's detail JSON. |
no test coverage detected