mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-07 22:58:34 +02:00
Hooks
- Added Hooks::list method to provide a list of known hooks.
This commit is contained in:
parent
e660f61cd2
commit
0ffc95e312
2 changed files with 8 additions and 0 deletions
|
@ -271,6 +271,12 @@ void Hooks::onModify (const Task& before, Task& after)
|
|||
context.timer_hooks.stop ();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
std::vector <std::string> Hooks::list ()
|
||||
{
|
||||
return _scripts;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
std::vector <std::string> Hooks::scripts (const std::string& event)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue