taskwarrior/test/test_hooks/on-modify.dummy
Renato Alves d261a38d17 Unittest - Enhanced support for testing hooks (wip)
* It is now possible to test:
  * Hook Input/Output on STDIN/STDOUT channels
  * Exit code of hook script
  * Execution count (how many times the hook was executed)
  * Timestamp execution (when was the hook executed - milisec resolution)
2014-11-02 00:01:06 +00:00

10 lines
149 B
Bash

#!/bin/sh
echo "on-modify executed"
while read TASK MODTASK; do
echo "Existing task $TASK modified to $MODTASK"
echo $MODTASK
done
exit 0