diff options
| author | Max Audron <audron@cocaine.farm> | 2022-06-07 12:28:18 +0200 |
|---|---|---|
| committer | Maximilian Manz <maximilian.manz@de.clara.net> | 2022-06-20 11:33:04 +0200 |
| commit | f869c7f52d8fd1f1ef61e218bbec4d0dac27673d (patch) | |
| tree | 8029b33976fc897a4ae81785e622a7e61ad2eb67 /src/update/mod.rs | |
init
Diffstat (limited to 'src/update/mod.rs')
| -rw-r--r-- | src/update/mod.rs | 14 |
1 files changed, 14 insertions, 0 deletions
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), + }; + } + } + } +} |
