Alias
- Integrated new Alias object into new command line processing.
This commit is contained in:
@@ -7,6 +7,7 @@ include_directories (${CMAKE_SOURCE_DIR}
|
|||||||
|
|
||||||
set (task_SRCS A3.cpp A3.h
|
set (task_SRCS A3.cpp A3.h
|
||||||
A3t.cpp A3t.h
|
A3t.cpp A3t.h
|
||||||
|
Alias.cpp Alias.h
|
||||||
Arg.cpp Arg.h
|
Arg.cpp Arg.h
|
||||||
Color.cpp Color.h
|
Color.cpp Color.h
|
||||||
Config.cpp Config.h
|
Config.cpp Config.h
|
||||||
|
|||||||
@@ -153,6 +153,8 @@ int Context::initialize (int argc, const char** argv)
|
|||||||
loadAliases ();
|
loadAliases ();
|
||||||
a3.resolve_aliases ();
|
a3.resolve_aliases ();
|
||||||
a3t.findAliases ();
|
a3t.findAliases ();
|
||||||
|
aliases2.load ();
|
||||||
|
aliases2.resolve (a3t.tree ());
|
||||||
|
|
||||||
// Initialize the color rules, if necessary.
|
// Initialize the color rules, if necessary.
|
||||||
if (color ())
|
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
|
// TODO Uncommenting this breaks unit tests because of the errors it
|
||||||
// generates.
|
// generates.
|
||||||
Tree* parseTree = NULL;
|
//Tree* parseTree = NULL;
|
||||||
//Tree* parseTree = a3t.parse ();
|
Tree* parseTree = a3t.parse ();
|
||||||
|
|
||||||
// Initialize the command line parser.
|
// Initialize the command line parser.
|
||||||
if (parseTree && config.getBoolean ("debug"))
|
if (parseTree && config.getBoolean ("debug"))
|
||||||
|
|||||||
@@ -34,6 +34,7 @@
|
|||||||
#include <TDB2.h>
|
#include <TDB2.h>
|
||||||
#include <Hooks.h>
|
#include <Hooks.h>
|
||||||
#include <DOM.h>
|
#include <DOM.h>
|
||||||
|
#include <Alias.h>
|
||||||
#include <Path.h>
|
#include <Path.h>
|
||||||
#include <File.h>
|
#include <File.h>
|
||||||
#include <Directory.h>
|
#include <Directory.h>
|
||||||
@@ -92,6 +93,7 @@ public:
|
|||||||
|
|
||||||
TDB2 tdb2;
|
TDB2 tdb2;
|
||||||
std::map <std::string, std::string> aliases;
|
std::map <std::string, std::string> aliases;
|
||||||
|
Alias aliases2;
|
||||||
Hooks hooks;
|
Hooks hooks;
|
||||||
DOM dom;
|
DOM dom;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user