mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +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
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue