aboutsummaryrefslogtreecommitdiff
path: root/src/sync/mod.rs
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2022-06-07 12:28:18 +0200
committerMaximilian Manz <maximilian.manz@de.clara.net>2022-06-20 11:33:04 +0200
commitae13cbecdbeca984e0d389732356c2785eab66d9 (patch)
treeccd76a92e16d47d23530b87ecdf21b57e40917ef /src/sync/mod.rs
parentfix crash while walking non existing dir (diff)
implement cloning of new repos
Diffstat (limited to 'src/sync/mod.rs')
-rw-r--r--src/sync/mod.rs12
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),
+ };
+ }
+ }
+}