()
| 1454 | } |
| 1455 | |
| 1456 | fn user_ssh_config_path() -> Result<PathBuf> { |
| 1457 | let home = std::env::var("HOME") |
| 1458 | .into_diagnostic() |
| 1459 | .wrap_err("HOME is not set")?; |
| 1460 | Ok(PathBuf::from(home).join(".ssh").join("config")) |
| 1461 | } |
| 1462 | |
| 1463 | fn render_include_line(path: &Path) -> String { |
| 1464 | format!("Include \"{}\"", path.display()) |
no outgoing calls
no test coverage detected