mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
18 lines
385 B
Python
Executable file
18 lines
385 B
Python
Executable file
#!/usr/bin/env python3
|
|
|
|
import sys
|
|
import json
|
|
|
|
original_task = sys.stdin.readline()
|
|
modified_task = sys.stdin.readline()
|
|
|
|
task = json.loads(modified_task)
|
|
task["description"] = "This is an example modify hook"
|
|
|
|
# A random message
|
|
sys.stdout.write("Hello from the template hook\n")
|
|
|
|
sys.stdout.write(json.dumps(task, separators=(",", ":")) + "\n")
|
|
sys.exit(0)
|
|
|
|
# vim: ai sts=4 et sw=4
|