aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorTeddy Wing2021-05-29 17:25:43 +0200
committerTeddy Wing2021-05-29 17:25:43 +0200
commit9b6ecdd494443b8db6d037f550ca2744b3b85aad (patch)
treeaf7f25875c80811ad655cf2d198b5d128fdcd6ad /src/main.rs
parent8c233d6d29e15c260a2ffa46b747d870cebc80e6 (diff)
downloadreflectub-9b6ecdd494443b8db6d037f550ca2744b3b85aad.tar.bz2
git::mirror(): Extract arguments
Move hard-coded repository values to function arguments.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 994c86f..e31da8e 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,10 +1,15 @@
use reflectub::{git, github};
+use std::path::Path;
+
fn main() {
// let repos = github::fetch_repos().unwrap();
//
// dbg!(&repos);
- git::mirror().unwrap();
+ git::mirror(
+ "https://github.com/teddywing/google-calendar-rsvp.git",
+ Path::new("/tmp/grsvp"),
+ ).unwrap();
}