git-workspace 1.10.1

Manage and update personal and work git repos from multiple providers
Documentation
use super::execute_cmd;
use std::path::Path;

/// Run `git fetch` on all our repositories
pub fn fetch(workspace: &Path, threads: usize) -> anyhow::Result<()> {
    let cmd = [
        "fetch",
        "--all",
        "--prune",
        "--recurse-submodules=on-demand",
        "--progress",
    ];
    execute_cmd(
        workspace,
        threads,
        "git".to_string(),
        cmd.iter().map(|s| (*s).to_string()).collect(),
    )?;
    Ok(())
}