aboutsummaryrefslogtreecommitdiff
path: root/src/config/args.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config/args.rs')
-rw-r--r--src/config/args.rs23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/config/args.rs b/src/config/args.rs
new file mode 100644
index 0000000..1b0683d
--- /dev/null
+++ b/src/config/args.rs
@@ -0,0 +1,23 @@
+use structopt::StructOpt;
+
+#[derive(StructOpt, Clone, Debug)]
+/// Sync Gitlab Trees
+pub struct Args {
+ #[structopt(subcommand)]
+ pub command: Commands,
+
+ /// Only operate on this subtree
+ pub scope: Option<String>,
+}
+
+#[derive(PartialEq, Clone, Debug)]
+#[derive(StructOpt)]
+#[structopt(about = "the stupid content tracker")]
+pub enum Commands {
+ /// Download new repositories and delete old ones, also update
+ Sync,
+ /// Pull and Push new commits to and from the cloned repos
+ Update,
+ /// List Directories
+ List,
+}