mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Expressions
- Many operators implemented - DOM::get partially implemented
This commit is contained in:
parent
4fca40fc69
commit
c77c6f172f
6 changed files with 315 additions and 101 deletions
|
@ -92,7 +92,7 @@ int CmdCustom::execute (std::string& output)
|
|||
context.tdb.commit ();
|
||||
context.tdb.unlock ();
|
||||
|
||||
////////////////////////////////////
|
||||
// Filter.
|
||||
Arguments f = context.args.extract_read_only_filter ();
|
||||
Expression e (f);
|
||||
|
||||
|
@ -102,12 +102,6 @@ int CmdCustom::execute (std::string& output)
|
|||
if (e.eval (*task))
|
||||
filtered.push_back (*task);
|
||||
|
||||
std::cout << "# tasks=" << tasks.size () << "\n"
|
||||
<< "# filtered=" << filtered.size () << "\n";
|
||||
//return 0;
|
||||
|
||||
////////////////////////////////////
|
||||
|
||||
// Sort the tasks.
|
||||
std::vector <int> sequence;
|
||||
for (unsigned int i = 0; i < filtered.size (); ++i)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue