From f869c7f52d8fd1f1ef61e218bbec4d0dac27673d Mon Sep 17 00:00:00 2001 From: Max Audron Date: Tue, 7 Jun 2022 12:28:18 +0200 Subject: init --- src/config/args.rs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/config/args.rs (limited to 'src/config/args.rs') 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, +} + +#[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, +} -- cgit v1.2.3