mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-04 10:37:19 +02:00
Enhancements - Context integration
- Context now gathers messages and footnotes. - task now calls into the new 1.8.0 code (via Context), then calls into the old 1.7.0 code. Two for the price of one.
This commit is contained in:
parent
024986fe88
commit
54f155f439
4 changed files with 62 additions and 19 deletions
|
@ -43,12 +43,16 @@ public:
|
|||
Context& operator= (const Context&); // Assignment operator
|
||||
~Context (); // Destructor
|
||||
|
||||
void initialize (int, char**);
|
||||
int run ();
|
||||
int interactive ();
|
||||
void initialize (int, char**); // all startup
|
||||
int run (); // task classic
|
||||
int interactive (); // task interactive (not implemented)
|
||||
|
||||
void message (const std::string&); // Message sink
|
||||
void footnote (const std::string&); // Footnote sink
|
||||
|
||||
private:
|
||||
void loadCorrectConfigFile (int, char**);
|
||||
void parse ();
|
||||
|
||||
public:
|
||||
Config config;
|
||||
|
@ -60,6 +64,8 @@ public:
|
|||
StringTable stringtable;
|
||||
|
||||
private:
|
||||
std::vector <std::string> messages;
|
||||
std::vector <std::string> footnotes;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue