mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
E9
- Implemented the shell of E9::eval. - Stubbed out operator_xxx helper methods.
This commit is contained in:
parent
b1048ddfa3
commit
83c0ea6ab2
5 changed files with 298 additions and 20 deletions
|
@ -269,16 +269,6 @@ int CmdShow::execute (std::string& output)
|
|||
if (context.args.size () == 2)
|
||||
section = context.args[1];
|
||||
*/
|
||||
/*
|
||||
Arguments args = context.args.extract_read_only_filter ();
|
||||
std::vector <std::pair <std::string, std::string> >::iterator arg;
|
||||
for (arg = args.begin (); arg != args.end (); ++arg)
|
||||
{
|
||||
if (arg->second == "string")
|
||||
{
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
if (section == "all")
|
||||
section = "";
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
#include <vector>
|
||||
#include <stdlib.h>
|
||||
#include <Expression.h>
|
||||
#include <E9.h>
|
||||
#include <Att.h>
|
||||
#include <Timer.h>
|
||||
#include <text.h>
|
||||
|
@ -82,8 +83,8 @@
|
|||
#include <CmdUndo.h>
|
||||
#include <CmdUrgency.h>
|
||||
#include <CmdVersion.h>
|
||||
#include <Context.h>
|
||||
|
||||
#include <Context.h>
|
||||
#include <ColProject.h>
|
||||
#include <ColPriority.h>
|
||||
#include <ColDue.h>
|
||||
|
@ -268,10 +269,8 @@ void Command::filter (std::vector <Task>& input, std::vector <Task>& output)
|
|||
{
|
||||
Timer timer ("Command::filter");
|
||||
|
||||
/**/
|
||||
A3 filt = context.a3.extract_filter ();
|
||||
filt.dump ("extract_filter");
|
||||
/**/
|
||||
|
||||
Arguments f;
|
||||
if (read_only ())
|
||||
|
@ -282,6 +281,7 @@ void Command::filter (std::vector <Task>& input, std::vector <Task>& output)
|
|||
if (f.size ())
|
||||
{
|
||||
Expression e (f);
|
||||
E9 expr (filt);
|
||||
|
||||
std::vector <Task>::iterator task;
|
||||
for (task = input.begin (); task != input.end (); ++task)
|
||||
|
@ -298,14 +298,9 @@ void Command::filter (std::vector <Task>& output)
|
|||
{
|
||||
Timer timer ("Command::filter");
|
||||
|
||||
/**/
|
||||
A3 filt = context.a3.extract_filter ();
|
||||
filt.dump ("extract_filter");
|
||||
|
||||
A3 mods = context.a3.extract_modifications ();
|
||||
mods.dump ("extract_modifications");
|
||||
/**/
|
||||
|
||||
Arguments f;
|
||||
if (read_only ())
|
||||
f = context.args.extract_read_only_filter ();
|
||||
|
@ -316,6 +311,7 @@ void Command::filter (std::vector <Task>& output)
|
|||
{
|
||||
const std::vector <Task>& pending = context.tdb2.pending.get_tasks ();
|
||||
Expression e (f);
|
||||
E9 expr (filt);
|
||||
|
||||
output.clear ();
|
||||
std::vector <Task>::const_iterator task;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue