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

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