init: Propagated database and log to CmdTags

This commit is contained in:
Paul Beckingham 2016-03-22 21:40:08 -04:00
parent eb29705930
commit 5710800d0f
3 changed files with 4 additions and 3 deletions

View file

@ -25,10 +25,11 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <commands.h>
#include <iostream>
////////////////////////////////////////////////////////////////////////////////
int CmdTags ()
int CmdTags (Database& database, Log& log)
{
std::cout << "[tags: enumerate tags in use]\n";

View file

@ -50,7 +50,7 @@ int CmdImport (
int CmdReport ( );
int CmdStart (const std::vector <std::string>&, Database&, Log&);
int CmdStop ( Database&, Log&);
int CmdTags ( );
int CmdTags ( Database&, Log&);
int CmdTrack ( );
int CmdUndo ( );

View file

@ -204,7 +204,7 @@ int dispatchCommand (
else if (closeEnough (allCommands[11], args[1], 2)) status = CmdReport ( );
else if (closeEnough (allCommands[12], args[1], 2)) status = CmdStart (args, database, log);
else if (closeEnough (allCommands[13], args[1], 2)) status = CmdStop ( database, log);
else if (closeEnough (allCommands[14], args[1], 2)) status = CmdTags ( );
else if (closeEnough (allCommands[14], args[1], 2)) status = CmdTags ( database, log);
else if (closeEnough (allCommands[15], args[1], 2)) status = CmdTrack ( );
else if (closeEnough (allCommands[16], args[1], 2)) status = CmdUndo ( );
}