mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 13:37:20 +02:00
CmdCustom: Converted from CLI to CLI2
This commit is contained in:
parent
3d19bffd55
commit
f8ab97a07e
1 changed files with 6 additions and 5 deletions
|
@ -64,8 +64,6 @@ int CmdCustom::execute (std::string& output)
|
|||
std::string reportLabels = context.config.get ("report." + _keyword + ".labels");
|
||||
std::string reportSort = context.config.get ("report." + _keyword + ".sort");
|
||||
std::string reportFilter = context.config.get ("report." + _keyword + ".filter");
|
||||
if (reportFilter != "")
|
||||
reportFilter = "( " + reportFilter + " )";
|
||||
|
||||
std::vector <std::string> columns;
|
||||
split (columns, reportColumns, ',');
|
||||
|
@ -81,9 +79,12 @@ int CmdCustom::execute (std::string& output)
|
|||
split (sortOrder, reportSort, ',');
|
||||
validateSortColumns (sortOrder);
|
||||
|
||||
// Add the report filter to any existing filter from the command line or
|
||||
// context.
|
||||
context.cli.addRawFilter (reportFilter);
|
||||
// Add the report filter to any existing filter.
|
||||
if (reportFilter != "")
|
||||
{
|
||||
context.cli2.addFilter (reportFilter);
|
||||
context.cli2.prepareFilter ();
|
||||
}
|
||||
|
||||
// Apply filter.
|
||||
handleRecurrence ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue