mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-21 07:43:08 +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 <vector>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <Context.h>
|
#include <Context.h>
|
||||||
|
#include <Filter.h>
|
||||||
#include <ViewText.h>
|
#include <ViewText.h>
|
||||||
#include <CmdTags.h>
|
#include <CmdTags.h>
|
||||||
#include <text.h>
|
#include <text.h>
|
||||||
|
@ -66,8 +67,9 @@ int CmdTags::execute (std::string& output)
|
||||||
int quantity = tasks.size ();
|
int quantity = tasks.size ();
|
||||||
|
|
||||||
// Apply filter.
|
// Apply filter.
|
||||||
|
Filter filter;
|
||||||
std::vector <Task> filtered;
|
std::vector <Task> filtered;
|
||||||
filter (tasks, filtered);
|
filter.subset (filtered);
|
||||||
|
|
||||||
// Scan all the tasks for their project name, building a map using project
|
// Scan all the tasks for their project name, building a map using project
|
||||||
// names as keys.
|
// names as keys.
|
||||||
|
@ -162,8 +164,9 @@ int CmdCompletionTags::execute (std::string& output)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Apply filter.
|
// Apply filter.
|
||||||
|
Filter filter;
|
||||||
std::vector <Task> filtered;
|
std::vector <Task> filtered;
|
||||||
filter (tasks, filtered);
|
filter.subset (filtered);
|
||||||
|
|
||||||
// Scan all the tasks for their tags, building a map using tag
|
// Scan all the tasks for their tags, building a map using tag
|
||||||
// names as keys.
|
// names as keys.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue