mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
CmdDefine: Rules object propagated to the command
This commit is contained in:
parent
ed34ee0103
commit
3b332eb96c
5 changed files with 12 additions and 7 deletions
|
@ -32,7 +32,7 @@
|
|||
#include <iostream> // TODO Remove
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
int dispatchCommand (int argc, const char** argv)
|
||||
int dispatchCommand (int argc, const char** argv, Rules& rules)
|
||||
{
|
||||
int status {0};
|
||||
|
||||
|
@ -52,7 +52,7 @@ int dispatchCommand (int argc, const char** argv)
|
|||
// command to fn mapping.
|
||||
if (closeEnough (allCommands[0], argv[1], 2)) status = CmdHelp ();
|
||||
else if (closeEnough (allCommands[1], argv[1], 2)) status = CmdClear ();
|
||||
else if (closeEnough (allCommands[2], argv[1], 2)) status = CmdDefine ();
|
||||
else if (closeEnough (allCommands[2], argv[1], 2)) status = CmdDefine (rules);
|
||||
else if (closeEnough (allCommands[3], argv[1], 2)) status = CmdExport ();
|
||||
else if (closeEnough (allCommands[4], argv[1], 2)) status = CmdImport ();
|
||||
else if (closeEnough (allCommands[5], argv[1], 2)) status = CmdReport ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue