sloppy_core/
command.rs

1use derive_builder::Builder;
2
3#[derive(Builder, Clone, Debug, Default)]
4pub struct Command {
5    pub name: String,
6
7    #[builder(setter(into))]
8    pub comment: String,
9
10    #[builder(setter(into))]
11    pub backend: String,
12
13    #[builder(setter(into))]
14    pub program: String,
15
16    #[builder(default = "true")]
17    pub errexit: bool,
18
19    #[builder(setter(into), default = "vec![]")]
20    pub imports: Vec<String>,
21
22    #[builder(setter(into), default = "vec![]")]
23    pub exports: Vec<String>,
24}
25
26impl Command {
27    pub fn builder() -> CommandBuilder {
28        CommandBuilder::default()
29    }
30}