mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Hooks
- The on-exit hook can now terminate processing.
This commit is contained in:
parent
7895ea0f42
commit
d9222606e7
1 changed files with 3 additions and 1 deletions
|
@ -203,6 +203,9 @@ void Hooks::onExit ()
|
|||
context.error (*line);
|
||||
}
|
||||
}
|
||||
|
||||
if (status)
|
||||
throw 0; // This is how hooks silently terminate processing.
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -243,7 +246,6 @@ void Hooks::onAdd (std::vector <Task>& tasks)
|
|||
int status = callHookScript (*script, input, output);
|
||||
|
||||
input.clear ();
|
||||
|
||||
std::vector <std::string>::iterator line;
|
||||
for (line = output.begin (); line != output.end (); ++line)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue