mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-21 07:43:08 +02:00
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:
parent
394acae790
commit
e2f35a1a06
2 changed files with 5 additions and 4 deletions
|
@ -11,6 +11,7 @@
|
||||||
- Implemented the context feature.
|
- Implemented the context feature.
|
||||||
- Closed dangling pipes in execute (), resolving problems when a hook script
|
- Closed dangling pipes in execute (), resolving problems when a hook script
|
||||||
forks (thanks to Jens Erat).
|
forks (thanks to Jens Erat).
|
||||||
|
- Re-enabled hook script feedback when exiting with 0 exit status.
|
||||||
|
|
||||||
------ current release ---------------------------
|
------ current release ---------------------------
|
||||||
|
|
||||||
|
|
|
@ -141,7 +141,7 @@ void Hooks::onLaunch ()
|
||||||
{
|
{
|
||||||
std::vector <std::string>::iterator message;
|
std::vector <std::string>::iterator message;
|
||||||
for (message = outputFeedback.begin (); message != outputFeedback.end (); ++message)
|
for (message = outputFeedback.begin (); message != outputFeedback.end (); ++message)
|
||||||
context.debug (*message);
|
context.footnote (*message);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -208,7 +208,7 @@ void Hooks::onExit ()
|
||||||
{
|
{
|
||||||
std::vector <std::string>::iterator message;
|
std::vector <std::string>::iterator message;
|
||||||
for (message = outputFeedback.begin (); message != outputFeedback.end (); ++message)
|
for (message = outputFeedback.begin (); message != outputFeedback.end (); ++message)
|
||||||
context.debug (*message);
|
context.footnote (*message);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -274,7 +274,7 @@ void Hooks::onAdd (Task& task)
|
||||||
|
|
||||||
std::vector <std::string>::iterator message;
|
std::vector <std::string>::iterator message;
|
||||||
for (message = outputFeedback.begin (); message != outputFeedback.end (); ++message)
|
for (message = outputFeedback.begin (); message != outputFeedback.end (); ++message)
|
||||||
context.debug (*message);
|
context.footnote (*message);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -345,7 +345,7 @@ void Hooks::onModify (const Task& before, Task& after)
|
||||||
|
|
||||||
std::vector <std::string>::iterator message;
|
std::vector <std::string>::iterator message;
|
||||||
for (message = outputFeedback.begin (); message != outputFeedback.end (); ++message)
|
for (message = outputFeedback.begin (); message != outputFeedback.end (); ++message)
|
||||||
context.debug (*message);
|
context.footnote (*message);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue