(repo_dir: &Path, home_dir: &Path, path: &str)
| 51 | } |
| 52 | |
| 53 | fn file_iri(repo_dir: &Path, home_dir: &Path, path: &str) -> String { |
| 54 | let identity = run(repo_dir, home_dir, &["repo", "identity", "show", "--json"]); |
| 55 | let identity: serde_json::Value = serde_json::from_str(&identity).unwrap(); |
| 56 | let project = ProjectId::from_base32(identity["project"].as_str().unwrap()).unwrap(); |
| 57 | iri::mint_file(&project, path) |
| 58 | } |
| 59 | |
| 60 | fn ensure_default_identity(repo_dir: &Path, home_dir: &Path) { |
| 61 | run( |
no test coverage detected