Enhancement - Aliases

- Moved alias mapping to Context.
- Added Context::canonicalize to resolve aliases.
- Added Context::loadAliases to reload on config file change.
- Removed old alias processing from Cmd.
- Doesn't work yet, but the data is loaded.
This commit is contained in:
Paul Beckingham
2009-06-23 17:38:58 -04:00
parent b6bc72c449
commit 78afa4e110
4 changed files with 44 additions and 28 deletions

View File

@@ -27,10 +27,8 @@
#ifndef INCLUDED_CMD
#define INCLUDED_CMD
//#include <map>
#include <vector>
#include <string>
#include "Cmd.h"
class Cmd
{
@@ -59,7 +57,6 @@ private:
private:
std::vector <std::string> commands;
std::vector <std::string> customReports;
// std::map <std::string, std::string> aliases;
};
#endif