summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple/Reaktor
diff options
context:
space:
mode:
authorjeschli <jeschli@gmail.com>2018-07-31 16:33:33 +0200
committerjeschli <jeschli@gmail.com>2018-07-31 16:33:33 +0200
commit676f5668de1f15b9297dd5ca36385cbfc0f33d87 (patch)
tree132a46ddc2a1863ebe58ab3bdf56c9a06cefab91 /krebs/5pkgs/simple/Reaktor
parentd34cfa4cc8953ee227f99a36d56ec9335cba532e (diff)
parent46e725b6ee1259ad8a0d33f9ffbda6fd1dc2228d (diff)
Merge remote-tracking branch 'origin/staging/jeschli'
Diffstat (limited to 'krebs/5pkgs/simple/Reaktor')
-rw-r--r--krebs/5pkgs/simple/Reaktor/plugins.nix32
1 files changed, 22 insertions, 10 deletions
diff --git a/krebs/5pkgs/simple/Reaktor/plugins.nix b/krebs/5pkgs/simple/Reaktor/plugins.nix
index c303f9fb3..c6e601475 100644
--- a/krebs/5pkgs/simple/Reaktor/plugins.nix
+++ b/krebs/5pkgs/simple/Reaktor/plugins.nix
@@ -146,16 +146,28 @@ rec {
'';
});
- taskwarrior = buildSimpleReaktorPlugin "task" {
- pattern = "^task: (?P<args>.*)$$";
- script = let
- taskrc = "$HOME/.taskrc";
- in
- pkgs.writeDash "task-wrapper" ''
- if [ -f ${taskrc} ] ; then
- touch ${taskrc}
- fi
- ${pkgs.taskwarrior}/bin/task "$*"
+ taskrcFile = builtins.toFile "taskrc" ''
+ confirmation=no
+ '';
+
+ task-add = buildSimpleReaktorPlugin "task-add" {
+ pattern = "^task-add: (?P<args>.*)$$";
+ script = pkgs.writeDash "task-add" ''
+ ${pkgs.taskwarrior}/bin/task rc:${taskrcFile} add "$*"
+ '';
+ };
+
+ task-list = buildSimpleReaktorPlugin "task-list" {
+ pattern = "^task-list";
+ script = pkgs.writeDash "task-list" ''
+ ${pkgs.taskwarrior}/bin/task rc:${taskrcFile} list
+ '';
+ };
+
+ task-delete = buildSimpleReaktorPlugin "task-delete" {
+ pattern = "^task-delete: (?P<args>.*)$$";
+ script = pkgs.writeDash "task-delete" ''
+ ${pkgs.taskwarrior}/bin/task rc:${taskrcFile} delete "$*"
'';
};