From f869c7f52d8fd1f1ef61e218bbec4d0dac27673d Mon Sep 17 00:00:00 2001 From: Max Audron Date: Tue, 7 Jun 2022 12:28:18 +0200 Subject: init --- src/update/mod.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/update/mod.rs (limited to 'src/update/mod.rs') diff --git a/src/update/mod.rs b/src/update/mod.rs new file mode 100644 index 0000000..0991b1a --- /dev/null +++ b/src/update/mod.rs @@ -0,0 +1,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), + }; + } + } + } +} -- cgit v1.2.3