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

Function resolve_dot_dir

atomic-cli/src/commands/agent/lifecycle.rs:643–648  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

641}
642
643fn resolve_dot_dir() -> CliResult<PathBuf> {
644 let cwd = std::env::current_dir().map_err(CliError::Io)?;
645 atomic_repository::Repository::canonical_dot_dir(&cwd).map_err(|e| {
646 CliError::Internal(anyhow!("not inside an Atomic repository or sandbox: {}", e))
647 })
648}
649
650fn lifecycle_dir(dot_dir: &Path) -> PathBuf {
651 dot_dir.join(LIFECYCLE_DIR)

Callers 1

runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected