mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
init: Propagated rules and database to CmdDefault
This commit is contained in:
parent
6fc25a3de1
commit
f2fbbf81bf
3 changed files with 4 additions and 3 deletions
|
@ -25,10 +25,11 @@
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <cmake.h>
|
||||
#include <commands.h>
|
||||
#include <iostream>
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
int CmdDefault ()
|
||||
int CmdDefault (Rules& rules, Database& database)
|
||||
{
|
||||
std::cout << "[default command or current interval summary]\n";
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
int CmdClear ( );
|
||||
int CmdConfig ( );
|
||||
int CmdContinue ( );
|
||||
int CmdDefault ( );
|
||||
int CmdDefault ( Rules&, Database& );
|
||||
int CmdDefine ( Rules& );
|
||||
int CmdDiagnostics ( Rules&, Database&, Extensions&, Log&);
|
||||
int CmdExport ( );
|
||||
|
|
|
@ -224,7 +224,7 @@ int dispatchCommand (
|
|||
}
|
||||
else if (args.size () == 1)
|
||||
{
|
||||
status = CmdDefault ();
|
||||
status = CmdDefault (rules, database);
|
||||
}
|
||||
|
||||
return status;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue