Print a stable, versioned status document for editor integrations.
(
&self,
status: &RepositoryStatus,
repo_root: &std::path::Path,
)
| 622 | |
| 623 | /// Print a stable, versioned status document for editor integrations. |
| 624 | fn print_json_format( |
| 625 | &self, |
| 626 | status: &RepositoryStatus, |
| 627 | repo_root: &std::path::Path, |
| 628 | ) -> CliResult<()> { |
| 629 | let output = JsonStatus::new(status, repo_root); |
| 630 | let json = serde_json::to_string_pretty(&output) |
| 631 | .map_err(|error| CliError::Internal(error.into()))?; |
| 632 | println!("{}", json); |
| 633 | Ok(()) |
| 634 | } |
| 635 | } |
| 636 | |
| 637 | impl Default for Status { |
no outgoing calls
no test coverage detected