mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
init: Propagated all services to CmdReport
This commit is contained in:
parent
8f29030d01
commit
8c2ce5847f
3 changed files with 9 additions and 3 deletions
|
@ -25,10 +25,16 @@
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <cmake.h>
|
||||
#include <commands.h>
|
||||
#include <iostream>
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
int CmdReport ()
|
||||
int CmdReport (
|
||||
const std::vector <std::string>& args,
|
||||
Rules& rules,
|
||||
Database& database,
|
||||
Extensions& extensions,
|
||||
Log& log)
|
||||
{
|
||||
std::cout << "[report: run a specific report/extension]\n";
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ int CmdHelpUsage (
|
|||
int CmdHelp (const std::vector <std::string>&, Log&);
|
||||
int CmdLog (const std::vector <std::string>&, Log&);
|
||||
int CmdImport ( );
|
||||
int CmdReport ( );
|
||||
int CmdReport (const std::vector <std::string>&, Rules&, Database&, Extensions&, Log&);
|
||||
int CmdStart (const std::vector <std::string>&, Database&, Log&);
|
||||
int CmdStop (const std::vector <std::string>&, Database&, Log&);
|
||||
int CmdTags ( Database&, Log&);
|
||||
|
|
|
@ -201,7 +201,7 @@ int dispatchCommand (
|
|||
else if (closeEnough (allCommands[8], args[1], 2)) status = CmdHelp (args, log);
|
||||
else if (closeEnough (allCommands[9], args[1], 2)) status = CmdImport ( );
|
||||
else if (closeEnough (allCommands[10], args[1], 2)) status = CmdLog (args, log);
|
||||
else if (closeEnough (allCommands[11], args[1], 2)) status = CmdReport ( );
|
||||
else if (closeEnough (allCommands[11], args[1], 2)) status = CmdReport (args, rules, database, extensions, log);
|
||||
else if (closeEnough (allCommands[12], args[1], 2)) status = CmdStart (args, database, log);
|
||||
else if (closeEnough (allCommands[13], args[1], 2)) status = CmdStop (args, database, log);
|
||||
else if (closeEnough (allCommands[14], args[1], 2)) status = CmdTags ( database, log);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue