mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-04 10:37:19 +02:00
Enhancement - Integration
- Integrated Cmd object. - Enhanced Context object with dispatch and shadow methods. - Fixed bug in Context::parse. - Implemented command parsing. - Fixed Sequence bug, and unit tests.
This commit is contained in:
parent
190c6b53fc
commit
d702ba8f24
7 changed files with 128 additions and 35 deletions
|
@ -32,6 +32,7 @@
|
|||
#include "Config.h"
|
||||
#include "Sequence.h"
|
||||
#include "Subst.h"
|
||||
#include "Cmd.h"
|
||||
#include "T2.h"
|
||||
#include "TDB2.h"
|
||||
#include "StringTable.h"
|
||||
|
@ -47,6 +48,8 @@ public:
|
|||
void initialize (int, char**); // all startup
|
||||
int run (); // task classic
|
||||
int interactive (); // task interactive (not implemented)
|
||||
void dispatch (); // command handler dispatch
|
||||
void shadow (); // shadow file update
|
||||
|
||||
void message (const std::string&); // Message sink
|
||||
void footnote (const std::string&); // Footnote sink
|
||||
|
@ -64,8 +67,9 @@ public:
|
|||
T2 task;
|
||||
TDB2 tdb;
|
||||
StringTable stringtable;
|
||||
std::string program;
|
||||
std::vector <std::string> args;
|
||||
std::string command;
|
||||
Cmd cmd;
|
||||
|
||||
private:
|
||||
std::vector <std::string> messages;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue