taskwarrior/scripts/hooks/on-exit
Paul Beckingham 8e730f2da3 Hooks
- Updated examples to not rely on bash being in /bin.
2015-02-07 10:25:50 -05:00

20 lines
418 B
Bash
Executable file

#!/bin/sh
# The on-exit event is triggered once, after all processing is complete.
# This hooks script has no effect on processing.
# Input:
# - Read-only line of JSON for each task added/modified
while read modified_task
do
echo $modified_task
done
# Output:
# - Optional feedback/error.
echo 'on-exit'
# Status:
# - 0: JSON ignored, non-JSON is feedback.
# - non-0: JSON ignored, non-JSON is error.
exit 0