diff options
| author | Paul Bütow <1224732+snonux@users.noreply.github.com> | 2025-06-20 21:25:53 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-20 21:25:53 +0300 |
| commit | e04538842128f09e9469ada29579cb4ac2013410 (patch) | |
| tree | 1c635c1653f9e9990eb103a9db7a7f7b283ca3a8 /internal/task | |
| parent | a7c475bf3be83dc422d7a16b6e4e015f257660fd (diff) | |
| parent | 8e3f1bea410eca250b80e3d4b045f68278aa7f58 (diff) | |
Merge pull request #44 from snonux/codex/investigate-undo-functionality-for-completed-tasks
Fix undo of completed tasks
Diffstat (limited to 'internal/task')
| -rw-r--r-- | internal/task/task.go | 5 |
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") |
