mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 17:07:19 +02:00
Context: Do not apply context for the export command
This commit is contained in:
parent
4eb70e68b7
commit
1465bcb918
5 changed files with 13 additions and 10 deletions
|
@ -532,10 +532,13 @@ void CLI::applyOverrides ()
|
|||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Extract all the FILTER-tagged items.
|
||||
const std::string CLI::getFilter ()
|
||||
const std::string CLI::getFilter (bool applyContext /* = true */)
|
||||
{
|
||||
// Handle context setting
|
||||
addContextFilter ();
|
||||
// Commands that don't want to respect current context should leverage
|
||||
// the applyContext argument
|
||||
if (applyContext)
|
||||
addContextFilter ();
|
||||
|
||||
std::string filter = "";
|
||||
if (_args.size ())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue