From 1a01a391f12b68c26a99b352da926a966df94146 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 6 Aug 2016 10:14:01 +0200 Subject: [PATCH] Add comment to task delete procedure --- imag-todo/src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) 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()),