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