aboutsummaryrefslogtreecommitdiff
path: root/src/config/args.rs
blob: 1b0683d9f9c0526da51998a83c8f1d39ae2cd67f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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,
}