From 57e5c12f9f47639ab48bb53103aaf831b675c53b Mon Sep 17 00:00:00 2001 From: Rob Golding Date: Sat, 8 Jun 2013 19:43:49 +0100 Subject: [PATCH] Add undo command --- tasklib/task.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tasklib/task.py b/tasklib/task.py index 5a223e2..a3f1487 100644 --- a/tasklib/task.py +++ b/tasklib/task.py @@ -279,3 +279,9 @@ class TaskWarrior(object): self.execute_command(args, config_override={ 'merge.autopush': 'yes' if push else 'no', }) + + def undo(self): + args = ['undo'] + self.execute_command(args, config_override={ + 'confirmation': 'no', + }) -- 2.39.5