mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
init: Propagated cli, rules, database and log
This commit is contained in:
parent
57e2904a96
commit
f7619a138d
3 changed files with 8 additions and 3 deletions
|
@ -25,10 +25,15 @@
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <cmake.h>
|
||||
#include <commands.h>
|
||||
#include <iostream>
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
int CmdTrack ()
|
||||
int CmdTrack (
|
||||
CLI& cli,
|
||||
Rules& rules,
|
||||
Database& database,
|
||||
Log& log)
|
||||
{
|
||||
std::cout << "[track: record an old interval]\n";
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@ int CmdReport (CLI&, Rules&, Database&, Extensions&, Log&);
|
|||
int CmdStart (CLI&, Rules&, Database&, Log&);
|
||||
int CmdStop (CLI&, Rules&, Database&, Log&);
|
||||
int CmdTags ( Rules&, Database&, Log&);
|
||||
int CmdTrack ( );
|
||||
int CmdTrack (CLI&, Rules&, Database&, Log&);
|
||||
int CmdUndo ( );
|
||||
|
||||
#endif
|
||||
|
|
|
@ -222,7 +222,7 @@ int dispatchCommand (
|
|||
else if (command == "start") status = CmdStart (cli, rules, database, log);
|
||||
else if (command == "stop") status = CmdStop (cli, rules, database, log);
|
||||
else if (command == "tags") status = CmdTags ( rules, database, log);
|
||||
else if (command == "track") status = CmdTrack ( );
|
||||
else if (command == "track") status = CmdTrack (cli, rules, database, log);
|
||||
else if (command == "undo") status = CmdUndo ( );
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue