()
| 205 | } |
| 206 | |
| 207 | fn open_operation_repository() -> CliResult<Repository> { |
| 208 | let root = find_repository_root()?; |
| 209 | Repository::open_readonly_for_operation_inspection(root).map_err(CliError::Repository) |
| 210 | } |
| 211 | |
| 212 | fn json<T: serde::Serialize>(value: &T) -> CliResult<String> { |
| 213 | to_pretty_json(value).map_err(|error| CliError::Internal(error.into())) |
no test coverage detected