mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-07 22:58:34 +02:00
Hooks
- Defined the interface for ::onLaunch and ::onExit.
This commit is contained in:
parent
f1451b2670
commit
ff52a2ab59
1 changed files with 14 additions and 0 deletions
|
@ -56,6 +56,13 @@ void Hooks::initialize ()
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Occurs when: On launch, after data structures are initiliazed, before
|
||||||
|
// data is loaded.
|
||||||
|
// Data fed to stdin: None
|
||||||
|
// Exit code: 0: Success, proceed
|
||||||
|
// !0: Failure, terminate
|
||||||
|
// Output handled: 0: context.footnote ()
|
||||||
|
// !0: context.error ()
|
||||||
void Hooks::onLaunch ()
|
void Hooks::onLaunch ()
|
||||||
{
|
{
|
||||||
context.timer_hooks.start ();
|
context.timer_hooks.start ();
|
||||||
|
@ -67,6 +74,13 @@ void Hooks::onLaunch ()
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Occurs when: On exit, after processing is complete, before output is
|
||||||
|
// displayed.
|
||||||
|
// Data fed to stdin: None
|
||||||
|
// Exit code: 0: Success
|
||||||
|
// !0: Failure
|
||||||
|
// Output handled: 0: context.footnote ()
|
||||||
|
// !0: context.error ()
|
||||||
void Hooks::onExit ()
|
void Hooks::onExit ()
|
||||||
{
|
{
|
||||||
context.timer_hooks.start ();
|
context.timer_hooks.start ();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue