1use super::*;
2
3#[derive(Clone, Debug, Eq, Getter, Parser, PartialEq)]
5#[command(
6 name = "euv",
7 version,
8 about = "Cross-platform native Rust UI CLI for euv"
9)]
10pub struct Cli {
11 #[command(subcommand)]
13 pub(crate) command: Commands,
14}
15
16#[derive(Args, Clone, Debug, Eq, Getter, PartialEq)]
18pub struct DocsBuildArgs {
19 pub(crate) src: Option<PathBuf>,
21 #[arg(long, default_value = DEFAULT_DOCS_OUT_DIR)]
23 pub(crate) out: PathBuf,
24 #[arg(long)]
26 pub(crate) title: Option<String>,
27 #[arg(long, default_value = "")]
29 pub(crate) base: String,
30}
31
32#[derive(Args, Clone, Debug, Eq, Getter, PartialEq)]
34pub struct ServerBindArgs {
35 #[arg(long, default_value = DEFAULT_DEV_HOST)]
37 pub(crate) host: String,
38 #[arg(long, default_value_t = 8080)]
40 #[get(type(copy))]
41 pub(crate) port: u16,
42 #[arg(long, default_value_t = 250)]
44 #[get(type(copy))]
45 pub(crate) poll_ms: u64,
46 #[arg(long, default_value_t = false)]
48 #[get(type(copy))]
49 pub(crate) once: bool,
50}