taskwarrior/scripts/hooks/on-exit
Paul Beckingham 3f2df5a3b6 Hooks
- Added example hook scripts.
2014-05-14 20:10:37 -04:00

22 lines
568 B
Bash
Executable file

#!/bin/bash
# Input:
# - None
# Processing goes here.
# Output:
# - Any line of JSON emitted is added as a new task.
# - Any non-JSON emitted is displayed as a message.
echo on-exit
# Exit:
# - 0 Means accept $new_task if JSON is not emitted.
# - 0 Means accept all JSON as new tasks. If UUID matches $new_task, use this
# JSON instead of $new_task. If UUID does not match $new_task, then these
# are additional tasks.
# - 0 Means all non-JSON becomes footnote entries.
# - 1 Means all non-JSON becomes error entries.
# - 1 Means reject $new_task.
exit 0