summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lass@blue.r>2018-09-09 12:10:03 +0200
committerlassulus <lass@blue.r>2018-09-09 12:10:03 +0200
commit887956bf2b7d9432197e216cd5d1cfa6afaa6185 (patch)
tree0f8a07bbb2afb453ca63952d9117d95b6f8df1d6
parenta5e484e98438ebae5af2be9223becf67d1eed17f (diff)
reaktor: add task-done
-rw-r--r--krebs/2configs/reaktor-krebs.nix1
-rw-r--r--krebs/2configs/reaktor-retiolum.nix1
-rw-r--r--krebs/5pkgs/simple/Reaktor/plugins.nix7
3 files changed, 9 insertions, 0 deletions
diff --git a/krebs/2configs/reaktor-krebs.nix b/krebs/2configs/reaktor-krebs.nix
index 2e63f1385..ba3715161 100644
--- a/krebs/2configs/reaktor-krebs.nix
+++ b/krebs/2configs/reaktor-krebs.nix
@@ -15,6 +15,7 @@ with import <stockholm/lib>;
sed-plugin
task-add
task-delete
+ task-done
task-list
] ++
(attrValues (todo "agenda"))
diff --git a/krebs/2configs/reaktor-retiolum.nix b/krebs/2configs/reaktor-retiolum.nix
index d5f1851e3..90573ca1c 100644
--- a/krebs/2configs/reaktor-retiolum.nix
+++ b/krebs/2configs/reaktor-retiolum.nix
@@ -12,6 +12,7 @@ with import <stockholm/lib>;
sed-plugin
task-add
task-delete
+ task-done
task-list
] ++
(attrValues (todo "agenda"))
diff --git a/krebs/5pkgs/simple/Reaktor/plugins.nix b/krebs/5pkgs/simple/Reaktor/plugins.nix
index c6e601475..50b07391c 100644
--- a/krebs/5pkgs/simple/Reaktor/plugins.nix
+++ b/krebs/5pkgs/simple/Reaktor/plugins.nix
@@ -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>.*)$$";