home path wrapper
()
| 165 | |
| 166 | /// home path wrapper |
| 167 | fn home() -> Result<PathBuf> { |
| 168 | canonicalize_path(&dirs::home_dir().context("$HOME was not set")?) |
| 169 | } |
| 170 | |
| 171 | /// prevents from long stupid paths, and replace the home path by the literal `$HOME` |
| 172 | fn pretty_path(a: &Path) -> Result<String> { |
no test coverage detected