mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 13:37:20 +02:00
Hooks
- Gutted the Hooks object. - Commented out on-launch and on-exit triggers.
This commit is contained in:
parent
7f3e42e4e1
commit
bfb19e0a64
3 changed files with 5 additions and 170 deletions
|
@ -221,10 +221,12 @@ int Context::initialize (int argc, const char** argv)
|
|||
// Initialize the database.
|
||||
tdb2.set_location (data_dir);
|
||||
|
||||
/*
|
||||
// Hook system init, plus post-start event occurring at the first possible
|
||||
// moment after hook initialization.
|
||||
hooks.initialize ();
|
||||
hooks.trigger ("on-launch");
|
||||
*/
|
||||
}
|
||||
|
||||
catch (const std::string& message)
|
||||
|
@ -384,8 +386,9 @@ int Context::run ()
|
|||
std::cerr << colorizeError (*e) << "\n";
|
||||
else
|
||||
std::cerr << *e << "\n";
|
||||
|
||||
/*
|
||||
hooks.trigger ("on-exit");
|
||||
*/
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue