diff options
author | lassulus <lass@blue.r> | 2018-07-10 21:07:56 +0200 |
---|---|---|
committer | lassulus <lass@blue.r> | 2018-07-10 21:07:56 +0200 |
commit | 3c8678eb25fe4a143d92a983d3d3c4b537e31f31 (patch) | |
tree | 9d110e02d94ec47170db008a558bc84ce5fcd0c7 /krebs/5pkgs/simple | |
parent | 2f29f28730347c2b69d3aebc931deb36159cf1fe (diff) | |
parent | 9f9cd592c50911e49956cf47e8e385a8299ac410 (diff) |
Merge remote-tracking branch 'prism/staging/jeschli'
Diffstat (limited to 'krebs/5pkgs/simple')
-rw-r--r-- | krebs/5pkgs/simple/Reaktor/plugins.nix | 32 |
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..db578c457 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-remove: (?P<args>.*)$$"; + script = pkgs.writeDash "task-delete" '' + ${pkgs.taskwarrior}/bin/task rc:${taskrcFile} delete "$*" ''; }; |