mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Hooks
- Added ::onExit.
This commit is contained in:
parent
39c476134f
commit
d12c519380
2 changed files with 17 additions and 0 deletions
|
@ -49,6 +49,22 @@ void Hooks::initialize ()
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
void Hooks::onLaunch ()
|
void Hooks::onLaunch ()
|
||||||
{
|
{
|
||||||
|
context.timer_hooks.start ();
|
||||||
|
|
||||||
|
// TODO Call all launch hook scripts.
|
||||||
|
// TODO Non-zero exit status terminates launch.
|
||||||
|
|
||||||
|
context.timer_hooks.stop ();
|
||||||
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
void Hooks::onExit ()
|
||||||
|
{
|
||||||
|
context.timer_hooks.start ();
|
||||||
|
|
||||||
|
// TODO Call all exit hook scripts.
|
||||||
|
|
||||||
|
context.timer_hooks.stop ();
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO Time the hook runs.
|
// TODO Time the hook runs.
|
||||||
|
|
|
@ -38,6 +38,7 @@ public:
|
||||||
void initialize ();
|
void initialize ();
|
||||||
|
|
||||||
void onLaunch ();
|
void onLaunch ();
|
||||||
|
void onExit ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue