mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CmdTags
- Converted from A3 to Filter.
This commit is contained in:
parent
7a196bac9c
commit
46b360beb0
1 changed files with 5 additions and 2 deletions
|
@ -29,6 +29,7 @@
|
|||
#include <vector>
|
||||
#include <stdlib.h>
|
||||
#include <Context.h>
|
||||
#include <Filter.h>
|
||||
#include <ViewText.h>
|
||||
#include <CmdTags.h>
|
||||
#include <text.h>
|
||||
|
@ -66,8 +67,9 @@ int CmdTags::execute (std::string& output)
|
|||
int quantity = tasks.size ();
|
||||
|
||||
// Apply filter.
|
||||
Filter filter;
|
||||
std::vector <Task> filtered;
|
||||
filter (tasks, filtered);
|
||||
filter.subset (filtered);
|
||||
|
||||
// Scan all the tasks for their project name, building a map using project
|
||||
// names as keys.
|
||||
|
@ -162,8 +164,9 @@ int CmdCompletionTags::execute (std::string& output)
|
|||
}
|
||||
|
||||
// Apply filter.
|
||||
Filter filter;
|
||||
std::vector <Task> filtered;
|
||||
filter (tasks, filtered);
|
||||
filter.subset (filtered);
|
||||
|
||||
// Scan all the tasks for their tags, building a map using tag
|
||||
// names as keys.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue