projects
/
ptask.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
(no commit message)
[ptask.git]
/
src
/
tw.c
diff --git
a/src/tw.c
b/src/tw.c
index
d65ae61
..
1e9a23c
100644
(file)
--- a/
src/tw.c
+++ b/
src/tw.c
@@
-263,3
+263,18
@@
void tw_add(const char *newdesc)
free(str);
free(opts);
}
+
+void tw_done(const char *uuid)
+{
+ char *opts;
+
+ opts = malloc(1
+ + strlen(uuid)
+ + strlen(" done")
+ + 1);
+ sprintf(opts, " %s done", uuid);
+
+ task_exec(opts);
+
+ free(opts);
+}