mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Enhancement - Context::constructFilter
- After parsing the command line, a filter is now constructed.
This commit is contained in:
parent
df38d5aaa0
commit
8bef5a90cd
2 changed files with 11 additions and 0 deletions
|
@ -435,6 +435,16 @@ std::cout << "# parse post-termination description '" << *arg << "'" << std::end
|
||||||
|
|
||||||
if (validDescription (descCandidate))
|
if (validDescription (descCandidate))
|
||||||
task.set ("description", descCandidate);
|
task.set ("description", descCandidate);
|
||||||
|
|
||||||
|
constructFilter ();
|
||||||
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Add all the attributes in the task to the filter.
|
||||||
|
void Context::constructFilter ()
|
||||||
|
{
|
||||||
|
foreach (att, task)
|
||||||
|
filter.push_back (att->second);
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
|
@ -57,6 +57,7 @@ public:
|
||||||
private:
|
private:
|
||||||
void loadCorrectConfigFile ();
|
void loadCorrectConfigFile ();
|
||||||
void parse ();
|
void parse ();
|
||||||
|
void constructFilter ();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Config config;
|
Config config;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue