Open ghost opened 5 years ago
For failing hooks, a workaround is to do something within the hook like:
print("Hook failed!")
sys.exit(1)
If this is the intended approach for handling failing hooks with taskpirate
, then it should ideally be mentioned in the taskpirate
docs, and then this issue closed as fixed.
Alternatively, if another approach is intended, then that other approach should be documented/implemented.
Thank you for making/maintaining
taskpirate
!Per https://taskwarrior.org/docs/hooks.html (my emphasis):
tasklib
does not explicitly support feedback text yet, but in some ways that is less of an issue, as it interfaces with TaskWarrior more directly.taskpirate
, adding as it does an abstraction layer betweentasklib
and hooks, does not seem to have a (documented) mechanism for sending feedback text from a hook back to taskpirate, together with JSON. That is, it has no (documented) mechanism for fully utilising TaskWarrior's hook support. This should probably be addressed.