X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/blobdiff_plain/c4d8c861713743f9bab0e95325c2af515a9182e5..dcbdcdd11c981b4600ea4a5522230d0456e45d21:/tasklib/backends.py diff --git a/tasklib/backends.py b/tasklib/backends.py index ad5bd6b..12a9234 100644 --- a/tasklib/backends.py +++ b/tasklib/backends.py @@ -201,3 +201,11 @@ class TaskWarrior(object): # altering the data before saving task.refresh(after_save=True) + def delete_task(self, task): + self.execute_command([task['uuid'], 'delete']) + + def start_task(self, task): + self.execute_command([task['uuid'], 'start']) + + def stop_task(self, task): + self.execute_command([task['uuid'], 'stop'])