Hooks
- onAdd, onExit, onLaunch and onModify hooks now output feedback messages as footnotes when hooks exit with status 0, as per hooks documentation.
This commit is contained in:
committed by
Paul Beckingham
parent
394acae790
commit
e2f35a1a06
@@ -11,6 +11,7 @@
|
||||
- Implemented the context feature.
|
||||
- Closed dangling pipes in execute (), resolving problems when a hook script
|
||||
forks (thanks to Jens Erat).
|
||||
- Re-enabled hook script feedback when exiting with 0 exit status.
|
||||
|
||||
------ current release ---------------------------
|
||||
|
||||
|
||||
@@ -141,7 +141,7 @@ void Hooks::onLaunch ()
|
||||
{
|
||||
std::vector <std::string>::iterator message;
|
||||
for (message = outputFeedback.begin (); message != outputFeedback.end (); ++message)
|
||||
context.debug (*message);
|
||||
context.footnote (*message);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -208,7 +208,7 @@ void Hooks::onExit ()
|
||||
{
|
||||
std::vector <std::string>::iterator message;
|
||||
for (message = outputFeedback.begin (); message != outputFeedback.end (); ++message)
|
||||
context.debug (*message);
|
||||
context.footnote (*message);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -274,7 +274,7 @@ void Hooks::onAdd (Task& task)
|
||||
|
||||
std::vector <std::string>::iterator message;
|
||||
for (message = outputFeedback.begin (); message != outputFeedback.end (); ++message)
|
||||
context.debug (*message);
|
||||
context.footnote (*message);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -345,7 +345,7 @@ void Hooks::onModify (const Task& before, Task& after)
|
||||
|
||||
std::vector <std::string>::iterator message;
|
||||
for (message = outputFeedback.begin (); message != outputFeedback.end (); ++message)
|
||||
context.debug (*message);
|
||||
context.footnote (*message);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user