diff options
Diffstat (limited to 'src/sync/mod.rs')
| -rw-r--r-- | src/sync/mod.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/sync/mod.rs b/src/sync/mod.rs new file mode 100644 index 0000000..2edc04c --- /dev/null +++ b/src/sync/mod.rs @@ -0,0 +1,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), + }; + } + } +} |
