GothenburgBitFactory / GothenburgBitFactory/taskwarrior

Externalize hook execution

Open
#3,838 11 comments 0 reactions 0 assignees View on GitHub
topic:hooks
Dominant language
C++
Stars
6.1k
Forks
423
Avg merge
1d 19h
Merged PRs (30d)
11

Description

## Problem

Since taskchampion exists, writing something that interfaces with the Taskwarrior's tasks is quite easy and incentivizes people to stop shelling out to the `task` command. Whilst using the taskchampion library improves the task handling immensely, it also comes at the hefty cost of completely ignoring the original Taskwarrior hooks.
For example, if a command starts a task via taskchampion tracking the spend time of the task via the Timewarrior record hook would silently stop working.

## Proposed improvement

It is obviously impartial to try to bolt hook execution on the taskchampion library;
Rather, externalizing the hook execution to another library would be beneficial as that would than guarantee that both Taskwarrior and the external command execute hooks in same way.

Otherwise, the external command could try to reimplement the hook execution, but this would probably end in slight changes in behaviour and certainly in code duplication.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.