diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-08-06 10:14:01 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-08-06 10:14:01 +0200 |
commit | 1a01a391f12b68c26a99b352da926a966df94146 (patch) | |
tree | b352ad03f9dc864e1e030e31496b6e8facfb0dc3 /imag-todo | |
parent | 0d2cd16e940ad4f7ea6b0836032a6c6c37c7908d (diff) |
Add comment to task delete procedure
Diffstat (limited to 'imag-todo')
-rw-r--r-- | imag-todo/src/main.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/imag-todo/src/main.rs b/imag-todo/src/main.rs index e373d3f7..28aa7464 100644 --- a/imag-todo/src/main.rs +++ b/imag-todo/src/main.rs @@ -77,6 +77,11 @@ fn tw_hook(rt: &Runtime) { } } + // Taskwarrior does not have the concept of deleted tasks, but only modified + // ones. + // + // Here we check if the status of a task is deleted and if yes, we delete it + // from the store. if *ttask.status() == TaskStatus::Deleted { match Task::delete_by_uuid(rt.store(), *ttask.uuid()) { Ok(_) => println!("Deleted task {}", *ttask.uuid()), |