mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Hooks
- Added ::onLaunch.
This commit is contained in:
parent
6cff8d9ff6
commit
39c476134f
3 changed files with 8 additions and 0 deletions
|
@ -223,6 +223,7 @@ int Context::initialize (int argc, const char** argv)
|
|||
|
||||
// First opportunity to run a hook script.
|
||||
hooks.initialize ();
|
||||
hooks.onLaunch ();
|
||||
}
|
||||
|
||||
catch (const std::string& message)
|
||||
|
|
|
@ -46,5 +46,10 @@ void Hooks::initialize ()
|
|||
// TODO Scan <rc.data.location>/hooks
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void Hooks::onLaunch ()
|
||||
{
|
||||
}
|
||||
|
||||
// TODO Time the hook runs.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -37,6 +37,8 @@ public:
|
|||
|
||||
void initialize ();
|
||||
|
||||
void onLaunch ();
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue