MCPcopy Create free account
hub / github.com/CodeBendKit/codeseek / register_project

Method register_project

rust-core/src/storage/persistence.rs:249–258  ·  view source on GitHub ↗
(&self, project_id: &str, project_dir: &str)

Source from the content-addressed store, hash-verified

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(&registry)
258 }
259
260 pub fn is_project_parsed(&self, project_id: &str) -> io::Result<bool> {
261 let registry = self.load_registry()?;

Callers

nothing calls this directly

Calls 4

load_registryMethod · 0.80
to_stringMethod · 0.80
insertMethod · 0.80
save_registryMethod · 0.80

Tested by

no test coverage detected