hyperlane_cli/config/struct.rs
1use super::*;
2
3/// Parsed command line arguments
4///
5/// `hyperlane-cli` ships both a library and a `hyperlane` binary; the binary
6/// is a separate crate that consumes this one, so the read path must stay
7/// `pub` (ยง17.18 exempts a struct the package's own binary target reads).
8#[derive(Clone, Data, Debug)]
9pub struct Args {
10 /// The command to execute
11 #[get(type(copy))]
12 pub command: CommandType,
13 /// Project name for new command
14 #[get(type(clone))]
15 pub project_name: Option<String>,
16 /// Template type for template command
17 #[get(type(clone))]
18 pub template_type: Option<TemplateType>,
19 /// Model subtype for template command (only when template_type is Model)
20 #[get(type(clone))]
21 pub model_sub_type: Option<ModelSubType>,
22 /// Component name for template command
23 #[get(type(clone))]
24 pub component_name: Option<String>,
25 /// Verify formatting without writing files for the fmt command
26 #[get(type(copy))]
27 pub fmt_check: bool,
28 /// Optional target directory or file path for the fmt command
29 #[get(type(clone))]
30 pub fmt_path: Option<PathBuf>,
31}