pub fn with<T>(
repo: &Repo,
github: &mut Client,
f: impl FnOnce(&mut dyn Host) -> Result<T, String>,
) -> Result<T, String>Expand description
Runs f with the host repo is on: github for a GitHub repository,
else a new client for its forge.