mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-20 13:23:08 +02:00
Feature #457
- Tasks may now be given an 'until' date, after which they expire and are deleted.
This commit is contained in:
parent
d122173103
commit
665bc197dc
11 changed files with 40 additions and 18 deletions
|
@ -468,6 +468,18 @@ std::string onProjectChange (Task& task1, Task& task2)
|
|||
return messages;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
std::string onExpiration (Task& task)
|
||||
{
|
||||
std::stringstream msg;
|
||||
|
||||
if (context.verbose ("affected"))
|
||||
msg << format (STRING_FEEDBACK_EXPIRED, task.id, task.get ("description"))
|
||||
<< "\n";
|
||||
|
||||
return msg.str ();
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
static void countTasks (
|
||||
const std::vector <Task>& all,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue