mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
init: CmdStart does not need rules access
This commit is contained in:
parent
94cf53c3cc
commit
7ad9132d72
3 changed files with 2 additions and 3 deletions
|
@ -32,7 +32,6 @@
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
int CmdStart (
|
||||
const std::vector <std::string>& args,
|
||||
Rules& rules,
|
||||
Database& database,
|
||||
Log& log)
|
||||
{
|
||||
|
|
|
@ -48,7 +48,7 @@ int CmdHelp (const std::vector <std::string>&,
|
|||
int CmdLog (const std::vector <std::string>&, Log&);
|
||||
int CmdImport ( );
|
||||
int CmdReport ( );
|
||||
int CmdStart (const std::vector <std::string>&, Rules&, Database&, Log&);
|
||||
int CmdStart (const std::vector <std::string>&, Database&, Log&);
|
||||
int CmdStop ( Database&, Log&);
|
||||
int CmdTags ( );
|
||||
int CmdTrack ( );
|
||||
|
|
|
@ -202,7 +202,7 @@ int dispatchCommand (
|
|||
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[12], args[1], 2)) status = CmdStart (args, rules, database, log);
|
||||
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[15], args[1], 2)) status = CmdTrack ( );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue