mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CLI: Abstract adding new raw filter to a new helper method
This commit is contained in:
parent
09fe5be086
commit
1abda3900b
3 changed files with 16 additions and 9 deletions
|
@ -82,15 +82,7 @@ int CmdCustom::execute (std::string& output)
|
|||
validateSortColumns (sortOrder);
|
||||
|
||||
// Prepend the argument list with those from the report filter.
|
||||
std::string lexeme;
|
||||
Lexer::Type type;
|
||||
Lexer lex (reportFilter);
|
||||
lex.ambiguity (false);
|
||||
while (lex.token (lexeme, type))
|
||||
context.cli.add (lexeme);
|
||||
|
||||
// Reparse after tree change.
|
||||
context.cli.analyze ();
|
||||
context.cli.addRawFilter(reportFilter);
|
||||
|
||||
// Apply filter.
|
||||
handleRecurrence ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue