mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CmdUrgency
- Converted from A3 to Filter.
This commit is contained in:
parent
2a72d0f1d6
commit
66d8a1267c
1 changed files with 3 additions and 1 deletions
|
@ -28,6 +28,7 @@
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <Context.h>
|
#include <Context.h>
|
||||||
|
#include <Filter.h>
|
||||||
#include <main.h>
|
#include <main.h>
|
||||||
#include <text.h>
|
#include <text.h>
|
||||||
#include <i18n.h>
|
#include <i18n.h>
|
||||||
|
@ -49,8 +50,9 @@ CmdUrgency::CmdUrgency ()
|
||||||
int CmdUrgency::execute (std::string& output)
|
int CmdUrgency::execute (std::string& output)
|
||||||
{
|
{
|
||||||
// Apply filter.
|
// Apply filter.
|
||||||
|
Filter filter;
|
||||||
std::vector <Task> filtered;
|
std::vector <Task> filtered;
|
||||||
filter (filtered);
|
filter.subset (filtered);
|
||||||
|
|
||||||
if (filtered.size () == 0)
|
if (filtered.size () == 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue