diff options
Diffstat (limited to 'internal/task')
| -rw-r--r-- | internal/task/task.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/internal/task/task.go b/internal/task/task.go index fb07333..f860b16 100644 --- a/internal/task/task.go +++ b/internal/task/task.go @@ -121,6 +121,16 @@ func Stop(id int) error { return run(strconv.Itoa(id), "stop") } +// Done marks the task with the given id as completed. +func Done(id int) error { + return run(strconv.Itoa(id), "done") +} + +// Delete removes the task with the given id. +func Delete(id int) error { + return run(strconv.Itoa(id), "delete") +} + // SetPriority changes the priority of the task with the given id. func SetPriority(id int, priority string) error { return run(strconv.Itoa(id), "modify", "priority:"+priority) |
