()
| 390 | } |
| 391 | |
| 392 | fn 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 | |
| 399 | fn lifecycle_dir(dot_dir: &Path) -> PathBuf { |
| 400 | dot_dir.join(LIFECYCLE_DIR) |