MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / remove_lifecycle

Function remove_lifecycle

atomic-cli/src/commands/agent/lifecycle.rs:521–532  ·  view source on GitHub ↗
(dir: &Path, run_id: &str)

Source from the content-addressed store, hash-verified

519}
520
521fn remove_lifecycle(dir: &Path, run_id: &str) -> CliResult<()> {
522 validate_run_id(run_id)?;
523 match fs::remove_file(lifecycle_path(dir, run_id)) {
524 Ok(()) => Ok(()),
525 Err(e) if e.kind() == std::io::ErrorKind::NotFound => Ok(()),
526 Err(e) => Err(CliError::Internal(anyhow!(
527 "failed to remove managed lifecycle '{}': {}",
528 run_id,
529 e
530 ))),
531 }
532}
533
534/// Collect sessions stamped with `run_id` from the canonical session store.
535fn collect_run_sessions(dot_dir: &Path, run_id: &str) -> Vec<RunSessionSummary> {

Callers 1

runMethod · 0.85

Calls 3

validate_run_idFunction · 0.85
lifecycle_pathFunction · 0.85
kindMethod · 0.45

Tested by

no test coverage detected