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