mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
init: Propagated args to CmdLog
This commit is contained in:
parent
b19d45fcdc
commit
649f42aabb
3 changed files with 7 additions and 3 deletions
|
@ -26,11 +26,13 @@
|
|||
|
||||
#include <cmake.h>
|
||||
#include <Log.h>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// TODO This may be removed.
|
||||
int CmdLog (Log& log)
|
||||
int CmdLog (const std::vector <std::string>& args, Log& log)
|
||||
{
|
||||
log.write ("debug", "---- 8< ----");
|
||||
|
||||
|
|
|
@ -30,6 +30,8 @@
|
|||
#include <Rules.h>
|
||||
#include <Database.h>
|
||||
#include <Log.h>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
int CmdClear ();
|
||||
int CmdConfig ();
|
||||
|
@ -42,7 +44,7 @@ int CmdExtension ();
|
|||
int CmdGaps ();
|
||||
int CmdHelpUsage ();
|
||||
int CmdHelp ();
|
||||
int CmdLog (Log&);
|
||||
int CmdLog (const std::vector <std::string>&, Log&);
|
||||
int CmdImport ();
|
||||
int CmdReport ();
|
||||
int CmdStart ();
|
||||
|
|
|
@ -201,7 +201,7 @@ int dispatchCommand (
|
|||
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 ();
|
||||
else if (closeEnough (allCommands[9], args[1], 2)) status = CmdLog (log);
|
||||
else if (closeEnough (allCommands[9], args[1], 2)) status = CmdLog (args, log);
|
||||
else if (closeEnough (allCommands[10], args[1], 2)) status = CmdReport ();
|
||||
else if (closeEnough (allCommands[11], args[1], 2)) status = CmdStart ();
|
||||
else if (closeEnough (allCommands[12], args[1], 2)) status = CmdStop ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue