diff options
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), + }; + } + } + } +} |
