mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Report Filters
- Report filters are now properly loaded and injected into the argument list.
This commit is contained in:
parent
b58438bdd4
commit
42ead6b34d
4 changed files with 47 additions and 3 deletions
|
@ -82,6 +82,13 @@ int CmdCustom::execute (std::string& output)
|
|||
split (sortOrder, reportSort, ',');
|
||||
validateSortColumns (sortOrder);
|
||||
|
||||
// Prepend the argument list with those from the report filter.
|
||||
std::vector <std::string> filterArgs;
|
||||
split (filterArgs, reportFilter, ' ');
|
||||
std::vector <std::string>::iterator arg;
|
||||
for (arg = filterArgs.begin (); arg != filterArgs.end (); ++ arg)
|
||||
context.args.capture_first (*arg);
|
||||
|
||||
// Load the data.
|
||||
// TODO Replace with TDB2.
|
||||
std::vector <Task> tasks;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue