mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
init: Database is propagated to command dispatch
This commit is contained in:
parent
47208f27b1
commit
343426d70e
3 changed files with 4 additions and 2 deletions
|
@ -94,6 +94,7 @@ int dispatchCommand (
|
|||
int argc,
|
||||
const char** argv,
|
||||
Configuration& configuration,
|
||||
Database& database,
|
||||
Rules& rules,
|
||||
Extensions& extensions)
|
||||
{
|
||||
|
|
|
@ -80,7 +80,7 @@ int main (int argc, const char** argv)
|
|||
initializeExtensions (configuration, extensions);
|
||||
|
||||
// Dispatch to commands.
|
||||
status = dispatchCommand (argc, argv, configuration, rules, extensions);
|
||||
status = dispatchCommand (argc, argv, configuration, database, rules, extensions);
|
||||
}
|
||||
|
||||
catch (const std::string& error)
|
||||
|
|
|
@ -30,13 +30,14 @@
|
|||
#include <Configuration.h>
|
||||
#include <Database.h>
|
||||
#include <Rules.h>
|
||||
#include <Extensions.h>
|
||||
|
||||
// init.cpp
|
||||
bool lightweightVersionCheck (int, const char**);
|
||||
void initializeData (Configuration&, Database&);
|
||||
void initializeRules (Configuration&, Rules&);
|
||||
void initializeExtensions (Configuration&, Extensions&);
|
||||
int dispatchCommand (int, const char**, Configuration&, Rules&, Extensions&);
|
||||
int dispatchCommand (int, const char**, Configuration&, Database&, Rules&, Extensions&);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue