reaktor: add task-done

This commit is contained in:
lassulus 2018-09-09 12:10:03 +02:00
parent a5e484e984
commit 887956bf2b
3 changed files with 9 additions and 0 deletions

View file

@ -15,6 +15,7 @@ with import <stockholm/lib>;
sed-plugin
task-add
task-delete
task-done
task-list
] ++
(attrValues (todo "agenda"))

View file

@ -12,6 +12,7 @@ with import <stockholm/lib>;
sed-plugin
task-add
task-delete
task-done
task-list
] ++
(attrValues (todo "agenda"))

View file

@ -171,6 +171,13 @@ rec {
'';
};
task-done = buildSimpleReaktorPlugin "task-done" {
pattern = "^task-done: (?P<args>.*)$$";
script = pkgs.writeDash "task-done" ''
${pkgs.taskwarrior}/bin/task rc:${taskrcFile} done "$*"
'';
};
todo = name: {
add = buildSimpleReaktorPlugin "${name}-add" {
pattern = "^${name}-add: (?P<args>.*)$$";