()
| 716 | } |
| 717 | |
| 718 | fn resolve_dot_dir() -> CliResult<PathBuf> { |
| 719 | let cwd = std::env::current_dir().map_err(CliError::Io)?; |
| 720 | atomic_repository::Repository::canonical_dot_dir(&cwd).map_err(|e| { |
| 721 | CliError::Internal(anyhow!("not inside an Atomic repository or sandbox: {}", e)) |
| 722 | }) |
| 723 | } |
| 724 | |
| 725 | fn lifecycle_dir(dot_dir: &Path) -> PathBuf { |
| 726 | dot_dir.join(LIFECYCLE_DIR) |