mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-24 14:36:42 +02:00
feat: Add taskwarrior version error prompt ✨
This commit is contained in:
parent
d60521e99f
commit
b1b13b60b0
1 changed files with 9 additions and 0 deletions
|
@ -286,6 +286,15 @@ impl TaskwarriorTui {
|
|||
app.filter_history.add(app.filter.as_str());
|
||||
app.command_history.load()?;
|
||||
app.task_background();
|
||||
|
||||
if app.task_version < *TASKWARRIOR_VERSION_SUPPORTED {
|
||||
app.error = Some(format!(
|
||||
"Found taskwarrior version {} but taskwarrior-tui works with taskwarrior>={}",
|
||||
app.task_version, *TASKWARRIOR_VERSION_SUPPORTED
|
||||
));
|
||||
app.mode = Mode::Tasks(Action::Error);
|
||||
}
|
||||
|
||||
Ok(app)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue