summaryrefslogtreecommitdiff
path: root/internal/task/task.go
diff options
context:
space:
mode:
authorPaul Bütow <1224732+snonux@users.noreply.github.com>2025-06-20 21:25:25 +0300
committerPaul Bütow <1224732+snonux@users.noreply.github.com>2025-06-20 21:25:25 +0300
commit8e3f1bea410eca250b80e3d4b045f68278aa7f58 (patch)
tree555462fad6da32f7b5221a2c0b3c017d7713a793 /internal/task/task.go
parent1989b6a3d4339321797a442d2fa2bbee21e23cd1 (diff)
Fix undo for completed tasks
Diffstat (limited to 'internal/task/task.go')
-rw-r--r--internal/task/task.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/task/task.go b/internal/task/task.go
index d878610..4bd72c1 100644
--- a/internal/task/task.go
+++ b/internal/task/task.go
@@ -113,6 +113,11 @@ func SetStatus(id int, status string) error {
return run(strconv.Itoa(id), "modify", "status:"+status)
}
+// SetStatusUUID changes the status of the task with the given UUID.
+func SetStatusUUID(uuid, status string) error {
+ return run(uuid, "modify", "status:"+status)
+}
+
// Start begins the task with the given id.
func Start(id int) error {
return run(strconv.Itoa(id), "start")