summaryrefslogtreecommitdiff
path: root/src/arguments.rs
blob: c0177441cad6b839cac23e488ffc55c4707b5626 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use std::path::PathBuf;

use clap::{Parser, ValueEnum};

#[derive(Clone, ValueEnum)]
pub enum Mode {
    List,
    Search,
    Count,
    Read,
    Raw,
    Folders,
    Move,
    Remove,
}

#[derive(Parser)]
#[command(author, version, about, long_about = None)]
pub struct Arguments {
    pub maildir_path: PathBuf,
    pub sys_user: String,
    pub mail_user: String,
    pub mode: Mode,
}