- Integrated new Alias object into new command line processing.
This commit is contained in:
Paul Beckingham 2014-04-19 08:22:27 -04:00
parent 93e28c1707
commit a353cbaf91
3 changed files with 7 additions and 2 deletions

View file

@ -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

View file

@ -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"))

View file

@ -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;