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

Function resolve_dot_dir

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

Source from the content-addressed store, hash-verified

390}
391
392fn resolve_dot_dir() -> CliResult<PathBuf> {
393 let cwd = std::env::current_dir().map_err(CliError::Io)?;
394 atomic_repository::Repository::canonical_dot_dir(&cwd).map_err(|e| {
395 CliError::Internal(anyhow!("not inside an Atomic repository or sandbox: {}", e))
396 })
397}
398
399fn lifecycle_dir(dot_dir: &Path) -> PathBuf {
400 dot_dir.join(LIFECYCLE_DIR)

Callers 1

runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected