reaktor: add task-done
This commit is contained in:
parent
a5e484e984
commit
887956bf2b
|
@ -15,6 +15,7 @@ with import <stockholm/lib>;
|
|||
sed-plugin
|
||||
task-add
|
||||
task-delete
|
||||
task-done
|
||||
task-list
|
||||
] ++
|
||||
(attrValues (todo "agenda"))
|
||||
|
|
|
@ -12,6 +12,7 @@ with import <stockholm/lib>;
|
|||
sed-plugin
|
||||
task-add
|
||||
task-delete
|
||||
task-done
|
||||
task-list
|
||||
] ++
|
||||
(attrValues (todo "agenda"))
|
||||
|
|
|
@ -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>.*)$$";
|
||||
|
|
Loading…
Reference in a new issue