mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CmdDenotate
- Converted from Parser to CLI.
This commit is contained in:
parent
6dbacf684c
commit
5cb753fd23
1 changed files with 5 additions and 7 deletions
|
@ -66,18 +66,16 @@ int CmdDenotate::execute (std::string& output)
|
|||
|
||||
// Extract all the ORIGINAL MODIFICATION args as simple text patter.
|
||||
std::string pattern = "";
|
||||
std::vector <Tree*>::iterator arg;
|
||||
for (arg = context.parser.tree ()->_branches.begin ();
|
||||
arg != context.parser.tree ()->_branches.end ();
|
||||
++arg)
|
||||
std::vector <A>::iterator a;
|
||||
for (a = context.cli._args.begin (); a != context.cli._args.end (); ++a)
|
||||
{
|
||||
if ((*arg)->hasTag ("ORIGINAL") &&
|
||||
(*arg)->hasTag ("MODIFICATION"))
|
||||
if (a->hasTag ("ORIGINAL") &&
|
||||
a->hasTag ("MODIFICATION"))
|
||||
{
|
||||
if (pattern != "")
|
||||
pattern += ' ';
|
||||
|
||||
pattern += (*arg)->attribute ("raw");
|
||||
pattern += a->attribute ("raw");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue