X-Git-Url: https://wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Ftw.c;fp=src%2Ftw.c;h=1e9a23c5eec3a31f0549ae0f8172578faddd7578;hb=4e7cd76bf11ac81c04727a6297486474d703bde8;hp=d65ae61e482e4134750a511aea198a342b808256;hpb=bbe0482ae653e5a5ea3b4d88ff8bcac77ae18f1b;p=ptask.git diff --git a/src/tw.c b/src/tw.c index d65ae61..1e9a23c 100644 --- 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); +}