(&self, project_id: &str)
| 171 | } |
| 172 | |
| 173 | pub fn delete_project(&self, project_id: &str) -> io::Result<()> { |
| 174 | let project_dir = self.project_dir(project_id); |
| 175 | if project_dir.exists() { |
| 176 | fs::remove_dir_all(project_dir)?; |
| 177 | } |
| 178 | // also remove from registry if present |
| 179 | let mut registry = self.load_registry()?; |
| 180 | registry.projects.remove(project_id); |
| 181 | self.save_registry(®istry)?; |
| 182 | Ok(()) |
| 183 | } |
| 184 | |
| 185 | pub fn list_projects(&self) -> io::Result<Vec<String>> { |
| 186 | let projects_dir = crate::config::Config::projects_dir(); |
nothing calls this directly
no test coverage detected