mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 07:57:20 +02:00
CmdCustom
- Added parallel cli handling.
This commit is contained in:
parent
c79a09d0b8
commit
99ff5cd372
1 changed files with 9 additions and 0 deletions
|
@ -90,6 +90,9 @@ int CmdCustom::execute (std::string& output)
|
||||||
context.parser.captureLast (")");
|
context.parser.captureLast (")");
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (reportFilter != "")
|
||||||
|
context.cli.add ("(");
|
||||||
|
|
||||||
// Prepend the argument list with those from the report filter.
|
// Prepend the argument list with those from the report filter.
|
||||||
std::string lexeme;
|
std::string lexeme;
|
||||||
Lexer::Type type;
|
Lexer::Type type;
|
||||||
|
@ -97,7 +100,13 @@ int CmdCustom::execute (std::string& output)
|
||||||
lex.ambiguity (false);
|
lex.ambiguity (false);
|
||||||
std::vector <std::string> filterArgs;
|
std::vector <std::string> filterArgs;
|
||||||
while (lex.token (lexeme, type))
|
while (lex.token (lexeme, type))
|
||||||
|
{
|
||||||
filterArgs.push_back (lexeme);
|
filterArgs.push_back (lexeme);
|
||||||
|
context.cli.add (lexeme);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (reportFilter != "")
|
||||||
|
context.cli.add (")");
|
||||||
|
|
||||||
std::vector <std::string>::reverse_iterator arg;
|
std::vector <std::string>::reverse_iterator arg;
|
||||||
for (arg = filterArgs.rbegin (); arg != filterArgs.rend (); ++ arg)
|
for (arg = filterArgs.rbegin (); arg != filterArgs.rend (); ++ arg)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue