init: Propagated all services to CmdReport

This commit is contained in:
Paul Beckingham 2016-03-25 23:49:34 -04:00
parent 8f29030d01
commit 8c2ce5847f
3 changed files with 9 additions and 3 deletions

View file

@ -25,10 +25,16 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <commands.h>
#include <iostream>
////////////////////////////////////////////////////////////////////////////////
int CmdReport ()
int CmdReport (
const std::vector <std::string>& args,
Rules& rules,
Database& database,
Extensions& extensions,
Log& log)
{
std::cout << "[report: run a specific report/extension]\n";

View file

@ -47,7 +47,7 @@ int CmdHelpUsage (
int CmdHelp (const std::vector <std::string>&, Log&);
int CmdLog (const std::vector <std::string>&, Log&);
int CmdImport ( );
int CmdReport ( );
int CmdReport (const std::vector <std::string>&, Rules&, Database&, Extensions&, Log&);
int CmdStart (const std::vector <std::string>&, Database&, Log&);
int CmdStop (const std::vector <std::string>&, Database&, Log&);
int CmdTags ( Database&, Log&);

View file

@ -201,7 +201,7 @@ int dispatchCommand (
else if (closeEnough (allCommands[8], args[1], 2)) status = CmdHelp (args, log);
else if (closeEnough (allCommands[9], args[1], 2)) status = CmdImport ( );
else if (closeEnough (allCommands[10], args[1], 2)) status = CmdLog (args, log);
else if (closeEnough (allCommands[11], args[1], 2)) status = CmdReport ( );
else if (closeEnough (allCommands[11], args[1], 2)) status = CmdReport (args, rules, database, extensions, log);
else if (closeEnough (allCommands[12], args[1], 2)) status = CmdStart (args, database, log);
else if (closeEnough (allCommands[13], args[1], 2)) status = CmdStop (args, database, log);
else if (closeEnough (allCommands[14], args[1], 2)) status = CmdTags ( database, log);