mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
init: Propagated database to CmdExport
This commit is contained in:
parent
adda69839c
commit
56f80d5916
3 changed files with 4 additions and 3 deletions
|
@ -25,10 +25,11 @@
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <cmake.h>
|
||||
#include <commands.h>
|
||||
#include <iostream>
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
int CmdExport ()
|
||||
int CmdExport (Database& database)
|
||||
{
|
||||
std::cout << "[export: JSON data export]\n";
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ int CmdContinue (
|
|||
int CmdDefault ( Rules&, Database& );
|
||||
int CmdDefine ( Rules& );
|
||||
int CmdDiagnostics ( Rules&, Database&, Extensions&, Log&);
|
||||
int CmdExport ( );
|
||||
int CmdExport ( Database& );
|
||||
int CmdExtensions ( Rules&, Extensions& );
|
||||
int CmdGaps ( );
|
||||
int CmdHelpUsage ( );
|
||||
|
|
|
@ -195,7 +195,7 @@ int dispatchCommand (
|
|||
else if (closeEnough (allCommands[2], args[1], 2)) status = CmdContinue ( );
|
||||
else if (closeEnough (allCommands[3], args[1], 2)) status = CmdDefine ( rules );
|
||||
else if (closeEnough (allCommands[4], args[1], 2)) status = CmdDiagnostics ( rules, database, extensions, log);
|
||||
else if (closeEnough (allCommands[5], args[1], 2)) status = CmdExport ( );
|
||||
else if (closeEnough (allCommands[5], args[1], 2)) status = CmdExport ( database );
|
||||
else if (closeEnough (allCommands[6], args[1], 2)) status = CmdExtensions ( rules, extensions );
|
||||
else if (closeEnough (allCommands[7], args[1], 2)) status = CmdGaps ( );
|
||||
else if (closeEnough (allCommands[8], args[1], 2)) status = CmdHelp (args, log);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue