mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Alias
- Integrated new Alias object into new command line processing.
This commit is contained in:
parent
93e28c1707
commit
a353cbaf91
3 changed files with 7 additions and 2 deletions
|
@ -7,6 +7,7 @@ include_directories (${CMAKE_SOURCE_DIR}
|
|||
|
||||
set (task_SRCS A3.cpp A3.h
|
||||
A3t.cpp A3t.h
|
||||
Alias.cpp Alias.h
|
||||
Arg.cpp Arg.h
|
||||
Color.cpp Color.h
|
||||
Config.cpp Config.h
|
||||
|
|
|
@ -153,6 +153,8 @@ int Context::initialize (int argc, const char** argv)
|
|||
loadAliases ();
|
||||
a3.resolve_aliases ();
|
||||
a3t.findAliases ();
|
||||
aliases2.load ();
|
||||
aliases2.resolve (a3t.tree ());
|
||||
|
||||
// Initialize the color rules, if necessary.
|
||||
if (color ())
|
||||
|
@ -219,8 +221,8 @@ int Context::initialize (int argc, const char** argv)
|
|||
|
||||
// TODO Uncommenting this breaks unit tests because of the errors it
|
||||
// generates.
|
||||
Tree* parseTree = NULL;
|
||||
//Tree* parseTree = a3t.parse ();
|
||||
//Tree* parseTree = NULL;
|
||||
Tree* parseTree = a3t.parse ();
|
||||
|
||||
// Initialize the command line parser.
|
||||
if (parseTree && config.getBoolean ("debug"))
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#include <TDB2.h>
|
||||
#include <Hooks.h>
|
||||
#include <DOM.h>
|
||||
#include <Alias.h>
|
||||
#include <Path.h>
|
||||
#include <File.h>
|
||||
#include <Directory.h>
|
||||
|
@ -92,6 +93,7 @@ public:
|
|||
|
||||
TDB2 tdb2;
|
||||
std::map <std::string, std::string> aliases;
|
||||
Alias aliases2;
|
||||
Hooks hooks;
|
||||
DOM dom;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue