taskwarrior/test/test_hooks/on-add-misbehave1
2024-12-17 19:08:48 -05:00

17 lines
402 B
Bash
Executable file

#!/bin/sh
# The on-add event is triggered separately for each task added. This hook
# script can accept/reject the addition. Processing will continue.
# Input:
# - Line of JSON for proposed new task.
# Output:
# - JSON, modified or unmodified.
# - Optional feedback/error.
echo 'FEEDBACK'
# Status:
# - 0: JSON accepted, non-JSON is feedback.
# - non-0: JSON ignored, non-JSON is error.
exit 1