MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / cleanup

Method cleanup

crates/chat-cli/src/cli/chat/checkpoint.rs:334–339  ·  view source on GitHub ↗

Clean up shadow repository

(&self, os: &Os)

Source from the content-addressed store, hash-verified

332
333 /// Clean up shadow repository
334 pub async fn cleanup(&self, os: &Os) -> Result<()> {
335 if self.shadow_repo_path.exists() {
336 os.fs.remove_dir_all(&self.shadow_repo_path).await?;
337 }
338 Ok(())
339 }
340
341 fn get_checkpoint(&self, tag: &str) -> Result<&Checkpoint> {
342 self.tag_index

Callers 1

handle_cleanMethod · 0.80

Calls 2

remove_dir_allMethod · 0.80
existsMethod · 0.45

Tested by

no test coverage detected