init: Propagated args, rules, database and log to CmdDefine

This commit is contained in:
Paul Beckingham 2016-03-27 01:16:44 -04:00
parent 74d7171004
commit 51cf2868f0
3 changed files with 8 additions and 4 deletions

View file

@ -25,11 +25,15 @@
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
#include <cmake.h> #include <cmake.h>
#include <Rules.h> #include <commands.h>
#include <iostream> #include <iostream>
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
int CmdDefine (Rules& rules) int CmdDefine (
const std::vector <std::string>& args,
Rules& rules,
Database& database,
Log& log)
{ {
std::cout << "[define: rule tweaking]\n"; std::cout << "[define: rule tweaking]\n";
return 0; return 0;

View file

@ -38,7 +38,7 @@ int CmdClear (
int CmdConfig ( ); int CmdConfig ( );
int CmdContinue ( Database&, Log&); int CmdContinue ( Database&, Log&);
int CmdDefault ( Rules&, Database& ); int CmdDefault ( Rules&, Database& );
int CmdDefine ( Rules& ); int CmdDefine (const std::vector <std::string>&, Rules&, Database&, Log&);
int CmdDiagnostics ( Rules&, Database&, Extensions&, Log&); int CmdDiagnostics ( Rules&, Database&, Extensions&, Log&);
int CmdExport ( Database& ); int CmdExport ( Database& );
int CmdExtensions ( Rules&, Extensions& ); int CmdExtensions ( Rules&, Extensions& );

View file

@ -193,7 +193,7 @@ int dispatchCommand (
if (matches[0] == allCommands[0]) status = CmdClear ( ); if (matches[0] == allCommands[0]) status = CmdClear ( );
else if (matches[0] == allCommands[1]) status = CmdConfig ( ); else if (matches[0] == allCommands[1]) status = CmdConfig ( );
else if (matches[0] == allCommands[2]) status = CmdContinue ( database, log); else if (matches[0] == allCommands[2]) status = CmdContinue ( database, log);
else if (matches[0] == allCommands[3]) status = CmdDefine ( rules ); else if (matches[0] == allCommands[3]) status = CmdDefine (args, rules, database, log);
else if (matches[0] == allCommands[4]) status = CmdDiagnostics ( rules, database, extensions, log); else if (matches[0] == allCommands[4]) status = CmdDiagnostics ( rules, database, extensions, log);
else if (matches[0] == allCommands[5]) status = CmdExport ( database ); else if (matches[0] == allCommands[5]) status = CmdExport ( database );
else if (matches[0] == allCommands[6]) status = CmdExtensions ( rules, extensions ); else if (matches[0] == allCommands[6]) status = CmdExtensions ( rules, extensions );