mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-24 23:46:41 +02:00
feat: Initial structs for UDA ✨
This commit is contained in:
parent
7af9a57acc
commit
7a1246f0bd
1 changed files with 11 additions and 0 deletions
|
@ -37,6 +37,15 @@ impl TaskWarriorBool for str {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
|
pub struct UDA {
|
||||||
|
label: String,
|
||||||
|
kind: String,
|
||||||
|
values: Option<Vec<String>>,
|
||||||
|
default: Option<String>,
|
||||||
|
urgency: Option<f64>,
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct Config {
|
pub struct Config {
|
||||||
pub enabled: bool,
|
pub enabled: bool,
|
||||||
|
@ -86,6 +95,7 @@ pub struct Config {
|
||||||
pub uda_task_report_prompt_on_done: bool,
|
pub uda_task_report_prompt_on_done: bool,
|
||||||
pub uda_task_report_date_time_vague_more_precise: bool,
|
pub uda_task_report_date_time_vague_more_precise: bool,
|
||||||
pub uda_context_menu_select_on_move: bool,
|
pub uda_context_menu_select_on_move: bool,
|
||||||
|
pub uda: Vec<UDA>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Config {
|
impl Config {
|
||||||
|
@ -206,6 +216,7 @@ impl Config {
|
||||||
uda_task_report_prompt_on_done,
|
uda_task_report_prompt_on_done,
|
||||||
uda_task_report_date_time_vague_more_precise,
|
uda_task_report_date_time_vague_more_precise,
|
||||||
uda_context_menu_select_on_move,
|
uda_context_menu_select_on_move,
|
||||||
|
uda: vec![],
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue