Rejecting a task in a on-add hook in TW3 #3450
-
How should tasks be rejected in TW3 when using an This hook logs #!/usr/bin/env fish
echo Nope
exit 1 Diag:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
That's a good question I wish I knew how to answer, @SecretPocketCat! I would have expected that not passing anything would break the chain. Reading the documentation, it seems like the reading in and printing a json dump just passes the values along. added_task = json.loads(sys.stdin.readline())
print(json.dumps(added_task)) This leads me to wonder if the receiving process doesn't receive a valid json object if it just ignores input from the hook and use the previous values. Not having done any hook work, that's only my best guess… |
Beta Was this translation helpful? Give feedback.
-
Moved to #3455 |
Beta Was this translation helpful? Give feedback.
Moved to #3455