diff options
Diffstat (limited to 'internal/task/task.go')
| -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") |
