init: Propagated database to CmdExport

This commit is contained in:
Paul Beckingham 2016-03-22 01:12:18 -04:00
parent adda69839c
commit 56f80d5916
3 changed files with 4 additions and 3 deletions

View file

@ -25,10 +25,11 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <commands.h>
#include <iostream>
////////////////////////////////////////////////////////////////////////////////
int CmdExport ()
int CmdExport (Database& database)
{
std::cout << "[export: JSON data export]\n";

View file

@ -40,7 +40,7 @@ int CmdContinue (
int CmdDefault ( Rules&, Database& );
int CmdDefine ( Rules& );
int CmdDiagnostics ( Rules&, Database&, Extensions&, Log&);
int CmdExport ( );
int CmdExport ( Database& );
int CmdExtensions ( Rules&, Extensions& );
int CmdGaps ( );
int CmdHelpUsage ( );

View file

@ -195,7 +195,7 @@ int dispatchCommand (
else if (closeEnough (allCommands[2], args[1], 2)) status = CmdContinue ( );
else if (closeEnough (allCommands[3], args[1], 2)) status = CmdDefine ( rules );
else if (closeEnough (allCommands[4], args[1], 2)) status = CmdDiagnostics ( rules, database, extensions, log);
else if (closeEnough (allCommands[5], args[1], 2)) status = CmdExport ( );
else if (closeEnough (allCommands[5], args[1], 2)) status = CmdExport ( database );
else if (closeEnough (allCommands[6], args[1], 2)) status = CmdExtensions ( rules, extensions );
else if (closeEnough (allCommands[7], args[1], 2)) status = CmdGaps ( );
else if (closeEnough (allCommands[8], args[1], 2)) status = CmdHelp (args, log);