aboutsummaryrefslogtreecommitdiff
path: root/src/update/mod.rs
blob: 0991b1a69ed7e931f415be9b128f424735721ac6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use gtree::local::Repos;

impl crate::GTree {
    pub async fn update(&self, repos: Repos) {
        for mut repo in repos {
            if let Some(_) = repo.repo {
                match repo.update() {
                    Ok(u) => println!("{}", u),
                    Err(u) => println!("{}", u),
                };
            }
        }
    }
}