Add comment to task delete procedure

This commit is contained in:
Matthias Beyer 2016-08-06 10:14:01 +02:00
parent 0d2cd16e94
commit 1a01a391f1

View file

@ -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()),