mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
init: Propagated database and log to CmdContinue
This commit is contained in:
parent
7ad9132d72
commit
11f990f2a0
3 changed files with 6 additions and 3 deletions
|
@ -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";
|
||||
|
||||
|
|
|
@ -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&);
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue