mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
init: Propagated args, rules, database and log to CmdDefine
This commit is contained in:
parent
74d7171004
commit
51cf2868f0
3 changed files with 8 additions and 4 deletions
|
@ -25,11 +25,15 @@
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <cmake.h>
|
||||
#include <Rules.h>
|
||||
#include <commands.h>
|
||||
#include <iostream>
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
int CmdDefine (Rules& rules)
|
||||
int CmdDefine (
|
||||
const std::vector <std::string>& args,
|
||||
Rules& rules,
|
||||
Database& database,
|
||||
Log& log)
|
||||
{
|
||||
std::cout << "[define: rule tweaking]\n";
|
||||
return 0;
|
||||
|
|
|
@ -38,7 +38,7 @@ int CmdClear (
|
|||
int CmdConfig ( );
|
||||
int CmdContinue ( Database&, Log&);
|
||||
int CmdDefault ( Rules&, Database& );
|
||||
int CmdDefine ( Rules& );
|
||||
int CmdDefine (const std::vector <std::string>&, Rules&, Database&, Log&);
|
||||
int CmdDiagnostics ( Rules&, Database&, Extensions&, Log&);
|
||||
int CmdExport ( Database& );
|
||||
int CmdExtensions ( Rules&, Extensions& );
|
||||
|
|
|
@ -193,7 +193,7 @@ int dispatchCommand (
|
|||
if (matches[0] == allCommands[0]) status = CmdClear ( );
|
||||
else if (matches[0] == allCommands[1]) status = CmdConfig ( );
|
||||
else if (matches[0] == allCommands[2]) status = CmdContinue ( database, log);
|
||||
else if (matches[0] == allCommands[3]) status = CmdDefine ( rules );
|
||||
else if (matches[0] == allCommands[3]) status = CmdDefine (args, rules, database, log);
|
||||
else if (matches[0] == allCommands[4]) status = CmdDiagnostics ( rules, database, extensions, log);
|
||||
else if (matches[0] == allCommands[5]) status = CmdExport ( database );
|
||||
else if (matches[0] == allCommands[6]) status = CmdExtensions ( rules, extensions );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue