mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
20 lines
514 B
Bash
Executable file
20 lines
514 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# The on-add event is triggered separately for each task added
|
|
|
|
# Input:
|
|
# - line of JSON for the task added
|
|
|
|
# Output:
|
|
# - all emitted JSON lines are added/modified as tasks, if the exit code is
|
|
# zero, otherwise ignored.
|
|
# - minimal new task: {"description":"Buy milk"}
|
|
# - to modify a task include complete JSON
|
|
# - all emitted non-JSON lines are considered feedback messages if the exit
|
|
# code is zero, otherwise they are considerederrors.
|
|
|
|
read new_task
|
|
|
|
echo $new_task
|
|
echo 'on-add'
|
|
exit 0
|