mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 10:07:19 +02:00
Hooks
- Added a run-time enable/disable control, for nested add/modify calls.
This commit is contained in:
parent
1fc388886f
commit
7e35508bb4
2 changed files with 61 additions and 47 deletions
|
@ -39,6 +39,7 @@ public:
|
|||
Hooks& operator= (const Hooks&); // Deliberately unimplemented
|
||||
|
||||
void initialize ();
|
||||
bool enable (bool);
|
||||
|
||||
void onLaunch ();
|
||||
void onExit ();
|
||||
|
@ -51,6 +52,7 @@ private:
|
|||
std::vector <std::string> scripts (const std::string&);
|
||||
|
||||
private:
|
||||
bool _enabled;
|
||||
std::vector <std::string> _scripts;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue