mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Unit Tests
- Added sample hooks that behave/misbehave in various ways.
This commit is contained in:
parent
1cfdfbae52
commit
3ff42af9c7
22 changed files with 421 additions and 0 deletions
16
test/test_hooks/on-exit-misbehave1
Normal file
16
test/test_hooks/on-exit-misbehave1
Normal file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
# 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
|
||||
|
||||
# Output:
|
||||
# - Optional feedback/error.
|
||||
echo 'FEEDBACK'
|
||||
|
||||
# Status:
|
||||
# - 0: JSON ignored, non-JSON is feedback.
|
||||
# - non-0: JSON ignored, non-JSON is error.
|
||||
exit 0
|
Loading…
Add table
Add a link
Reference in a new issue