(store: &IdentityStore, raw: &str)
| 614 | } |
| 615 | |
| 616 | fn load_document(store: &IdentityStore, raw: &str) -> CliResult<String> { |
| 617 | let id = normalize_id(raw)?; |
| 618 | store |
| 619 | .load_delegation(&id) |
| 620 | .map_err(|_| CliError::DelegationError { |
| 621 | message: format!("No certificate stored under {raw}"), |
| 622 | }) |
| 623 | } |
| 624 | |
| 625 | fn read_input(path: &str) -> CliResult<String> { |
| 626 | if path == "-" { |
no test coverage detected