(&self, project_id: &str, project_dir: &str)
| 247 | } |
| 248 | |
| 249 | pub fn register_project(&self, project_id: &str, project_dir: &str) -> io::Result<()> { |
| 250 | let mut registry = self.load_registry()?; |
| 251 | let record = ProjectRecord { |
| 252 | project_id: project_id.to_string(), |
| 253 | project_dir: project_dir.to_string(), |
| 254 | parsed_at: Utc::now(), |
| 255 | }; |
| 256 | registry.projects.insert(project_id.to_string(), record); |
| 257 | self.save_registry(®istry) |
| 258 | } |
| 259 | |
| 260 | pub fn is_project_parsed(&self, project_id: &str) -> io::Result<bool> { |
| 261 | let registry = self.load_registry()?; |
nothing calls this directly
no test coverage detected