1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
use serde::{Deserialize, Serialize};
pub mod ansi;
pub mod arg;
pub mod error;
pub mod git;
pub mod help;
pub mod misc;
pub mod proc;
pub mod version;
#[derive(Debug, Serialize, Deserialize)]
pub struct Opt {
pub save: bool,
pub flag: bool,
pub value: String,
}
#[derive(Debug)]
pub struct Arg {
pub short: &'static str,
pub long: &'static str,
pub types: &'static str,
pub save: bool,
pub flag: bool,
pub category: &'static str,
pub value: String,
pub exp: &'static str,
}