mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Commands
- Promoted filtering code to the Command base class. - Added filtering short-circuit.
This commit is contained in:
parent
db17536266
commit
7762ee2f9e
14 changed files with 79 additions and 173 deletions
|
@ -29,7 +29,9 @@
|
|||
#define L10N // Localization complete.
|
||||
|
||||
#include <map>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <Task.h>
|
||||
|
||||
class Command
|
||||
{
|
||||
|
@ -49,6 +51,8 @@ public:
|
|||
bool displays_id () const;
|
||||
virtual int execute (std::string&) = 0;
|
||||
|
||||
void filter (std::vector <Task>&, std::vector <Task>&);
|
||||
|
||||
protected:
|
||||
std::string _keyword;
|
||||
std::string _usage;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue