mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
init: Propagated datatabase to CmdDiagnostics
This commit is contained in:
parent
d5b12e8e27
commit
854213c8b5
3 changed files with 4 additions and 3 deletions
|
@ -36,7 +36,7 @@
|
|||
#endif
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
int CmdDiagnostics (Log& log)
|
||||
int CmdDiagnostics (Database& database, Log& log)
|
||||
{
|
||||
std::stringstream out;
|
||||
out << "\n"
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
#define INCLUDED_COMMANDS
|
||||
|
||||
#include <Rules.h>
|
||||
#include <Database.h>
|
||||
#include <Log.h>
|
||||
|
||||
int CmdClear ();
|
||||
|
@ -35,7 +36,7 @@ int CmdConfig ();
|
|||
int CmdContinue ();
|
||||
int CmdDefault ();
|
||||
int CmdDefine (Rules&);
|
||||
int CmdDiagnostics (Log&);
|
||||
int CmdDiagnostics (Database&, Log&);
|
||||
int CmdExport ();
|
||||
int CmdExtension ();
|
||||
int CmdGaps ();
|
||||
|
|
|
@ -197,7 +197,7 @@ int dispatchCommand (
|
|||
else if (closeEnough (allCommands[2], args[1], 2)) status = CmdConfig ();
|
||||
else if (closeEnough (allCommands[3], args[1], 2)) status = CmdContinue ();
|
||||
else if (closeEnough (allCommands[4], args[1], 2)) status = CmdDefine (rules);
|
||||
else if (closeEnough (allCommands[5], args[1], 2)) status = CmdDiagnostics (log);
|
||||
else if (closeEnough (allCommands[5], args[1], 2)) status = CmdDiagnostics (database, log);
|
||||
else if (closeEnough (allCommands[6], args[1], 2)) status = CmdExport ();
|
||||
else if (closeEnough (allCommands[7], args[1], 2)) status = CmdGaps ();
|
||||
else if (closeEnough (allCommands[8], args[1], 2)) status = CmdImport ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue