Find the best development binary in the repo. Prefers the newest local self-dev or release binary.
(repo_dir: &Path)
| 302 | /// Find the best development binary in the repo. |
| 303 | /// Prefers the newest local self-dev or release binary. |
| 304 | pub fn find_dev_binary(repo_dir: &Path) -> Option<PathBuf> { |
| 305 | newest_existing_binary(vec![ |
| 306 | (selfdev_binary_path(repo_dir), "repo-selfdev"), |
| 307 | (release_binary_path(repo_dir), "repo-release"), |
| 308 | ]) |
| 309 | .map(|(path, _)| path) |
| 310 | } |
| 311 | |
| 312 | fn home_dir() -> Result<PathBuf> { |
| 313 | std::env::var("HOME") |
no test coverage detected