Dependencies

- Added dependency nagging to the 'start', 'done' and 'delete' commands.
This commit is contained in:
Paul Beckingham 2010-08-27 17:45:22 -04:00
parent 199114abcd
commit e619f8c91d
3 changed files with 16 additions and 7 deletions

View file

@ -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 ();
}
////////////////////////////////////////////////////////////////////////////////