From 8e3f1bea410eca250b80e3d4b045f68278aa7f58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20B=C3=BCtow?= <1224732+snonux@users.noreply.github.com> Date: Fri, 20 Jun 2025 21:25:25 +0300 Subject: Fix undo for completed tasks --- internal/task/task.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'internal/task') 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") -- cgit v1.2.3