fn pick(
on_path: impl IntoIterator<Item = PathBuf>,
windows_client: Option<PathBuf>,
preferred: impl Fn(&Path) -> bool,
) -> Option<PathBuf>Expand description
binary’s order: the first preferred ssh on PATH, then Windows’
own client if preferred, else the first on PATH, else Windows’ client.