()
| 641 | } |
| 642 | |
| 643 | fn 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 | |
| 650 | fn lifecycle_dir(dot_dir: &Path) -> PathBuf { |
| 651 | dot_dir.join(LIFECYCLE_DIR) |