mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Argument Parsing
- Eliminated stored arg_overrides and file_override in Context. - Removed Filter, Subst, Task, Sequence from Context. - Remove shadow file support. Hallelujah. - Disabled/commented out most commands, ready for the big transition to the new parsing style. - Obsoleted Subst.{h,cpp}.
This commit is contained in:
parent
b4c1e47ab4
commit
58a677ffb5
42 changed files with 265 additions and 383 deletions
|
@ -33,7 +33,6 @@
|
|||
#include <Filter.h>
|
||||
#include <Config.h>
|
||||
#include <Sequence.h>
|
||||
#include <Subst.h>
|
||||
#include <Task.h>
|
||||
#include <TDB.h>
|
||||
#include <TDB2.h>
|
||||
|
@ -68,11 +67,6 @@ public:
|
|||
void footnote (const std::string&); // Footnote message sink
|
||||
void debug (const std::string&); // Debug message sink
|
||||
void clearMessages ();
|
||||
|
||||
/*
|
||||
void parse ();
|
||||
void parse (std::vector <std::string>&, Cmd&, Task&, Sequence&, Subst&, Filter&);
|
||||
*/
|
||||
void clear ();
|
||||
|
||||
void disallowModification () const;
|
||||
|
@ -96,17 +90,23 @@ public:
|
|||
Directory extension_dir;
|
||||
Config config;
|
||||
|
||||
/*
|
||||
Filter filter; // TODO Obsolete
|
||||
Sequence sequence; // TODO Obsolete
|
||||
Subst subst; // TODO Obsolete
|
||||
Task task; // TODO Obsolete
|
||||
*/
|
||||
TDB tdb; // TODO Obsolete
|
||||
TDB2 tdb2;
|
||||
/*
|
||||
std::string file_override;
|
||||
std::string var_overrides;
|
||||
*/
|
||||
std::map <std::string, std::string> aliases;
|
||||
/*
|
||||
std::vector <std::string> tagAdditions; // TODO Obsolete
|
||||
std::vector <std::string> tagRemovals; // TODO Obsolete
|
||||
*/
|
||||
Hooks hooks;
|
||||
DOM dom;
|
||||
|
||||
|
@ -119,7 +119,9 @@ public:
|
|||
std::vector <std::string> headers;
|
||||
std::vector <std::string> footnotes;
|
||||
std::vector <std::string> debugMessages;
|
||||
/*
|
||||
bool inShadow;
|
||||
*/
|
||||
|
||||
std::map <std::string, Command*> commands;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue