init: Propagated database and log to CmdContinue

This commit is contained in:
Paul Beckingham 2016-03-22 01:40:49 -04:00
parent 7ad9132d72
commit 11f990f2a0
3 changed files with 6 additions and 3 deletions

View file

@ -25,10 +25,13 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <commands.h>
#include <iostream>
////////////////////////////////////////////////////////////////////////////////
int CmdContinue ()
int CmdContinue (
Database& database,
Log& log)
{
std::cout << "[continue: allows resuming a stopped interval]\n";

View file

@ -36,7 +36,7 @@
int CmdClear ( );
int CmdConfig ( );
int CmdContinue ( );
int CmdContinue ( Database&, Log&);
int CmdDefault ( Rules&, Database& );
int CmdDefine ( Rules& );
int CmdDiagnostics ( Rules&, Database&, Extensions&, Log&);

View file

@ -192,7 +192,7 @@ int dispatchCommand (
// command to fn mapping.
if (closeEnough (allCommands[0], args[1], 2)) status = CmdClear ( );
else if (closeEnough (allCommands[1], args[1], 2)) status = CmdConfig ( );
else if (closeEnough (allCommands[2], args[1], 2)) status = CmdContinue ( );
else if (closeEnough (allCommands[2], args[1], 2)) status = CmdContinue ( database, log);
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 ( database );