mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 13:37:20 +02:00
Dependencies
- Added dependency nagging to the 'start', 'done' and 'delete' commands.
This commit is contained in:
parent
199114abcd
commit
e619f8c91d
3 changed files with 16 additions and 7 deletions
|
@ -27,6 +27,7 @@
|
|||
|
||||
#include <algorithm>
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <Context.h>
|
||||
#include <text.h>
|
||||
|
||||
|
@ -150,13 +151,16 @@ bool dependencyChainBroken (Task& task)
|
|||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Generate a nag message if a dependency chain is being violated.
|
||||
void dependencyNag (Task& task)
|
||||
std::string dependencyNag (Task& task)
|
||||
{
|
||||
std::cout << "# dependencyNag "
|
||||
<< task.id
|
||||
<< " "
|
||||
<< task.get ("uuid")
|
||||
<< "\n";
|
||||
std::stringstream out;
|
||||
out << "# dependencyNag "
|
||||
<< task.id
|
||||
<< " "
|
||||
<< task.get ("uuid")
|
||||
<< "\n";
|
||||
|
||||
return out.str ();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue