Skip to main content

tusks_lib/parsing/attribute/
models.rs

1#[derive(Debug)]
2#[derive(Default)]
3pub struct TusksAttr {
4    pub debug: bool,
5    pub root: bool,
6    pub derive_debug_for_parameters: bool,
7    pub tasks: Option<TasksConfig>,
8}
9
10#[derive(Debug)]
11pub struct TasksConfig {
12    pub max_groupsize: usize,
13    pub max_depth: usize,
14    pub separator: String,
15    pub use_colors: bool,
16}
17
18impl Default for TasksConfig {
19    fn default() -> Self {
20        Self {
21            max_groupsize: 5,
22            max_depth: 20,
23            separator: ".".to_string(),
24            use_colors: true
25        }
26    }
27}
28