From ae13cbecdbeca984e0d389732356c2785eab66d9 Mon Sep 17 00:00:00 2001 From: Max Audron Date: Tue, 7 Jun 2022 12:28:18 +0200 Subject: implement cloning of new repos --- src/sync/mod.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/sync/mod.rs (limited to 'src/sync') 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), + }; + } + } +} -- cgit v1.2.3