mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CLI: Apply context filter directly in getFilter method
This commit is contained in:
parent
3a77a5f291
commit
dc0502dd9f
1 changed files with 4 additions and 0 deletions
|
@ -534,6 +534,9 @@ void CLI::applyOverrides ()
|
|||
// Extract all the FILTER-tagged items.
|
||||
const std::string CLI::getFilter ()
|
||||
{
|
||||
// Handle context setting
|
||||
addContextFilter ();
|
||||
|
||||
std::string filter = "";
|
||||
if (_args.size ())
|
||||
{
|
||||
|
@ -558,6 +561,7 @@ const std::string CLI::getFilter ()
|
|||
filter = "( " + filter + " )";
|
||||
}
|
||||
|
||||
context.debug("Derived filter: '" + filter + "'");
|
||||
return filter;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue