mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Timew: Extensions are propagated to command dispatch
This commit is contained in:
parent
4591a4d7a4
commit
5eb3b77914
3 changed files with 4 additions and 3 deletions
|
@ -86,7 +86,8 @@ int dispatchCommand (
|
||||||
int argc,
|
int argc,
|
||||||
const char** argv,
|
const char** argv,
|
||||||
Configuration& configuration,
|
Configuration& configuration,
|
||||||
Rules& rules)
|
Rules& rules,
|
||||||
|
Extensions& extensions)
|
||||||
{
|
{
|
||||||
int status {0};
|
int status {0};
|
||||||
|
|
||||||
|
|
|
@ -80,7 +80,7 @@ int main (int argc, const char** argv)
|
||||||
initializeExtensions (configuration, extensions);
|
initializeExtensions (configuration, extensions);
|
||||||
|
|
||||||
// Dispatch to commands.
|
// Dispatch to commands.
|
||||||
status = dispatchCommand (argc, argv, configuration, rules);
|
status = dispatchCommand (argc, argv, configuration, rules, extensions);
|
||||||
}
|
}
|
||||||
|
|
||||||
catch (const std::string& error)
|
catch (const std::string& error)
|
||||||
|
|
|
@ -36,7 +36,7 @@ bool lightweightVersionCheck (int, const char**);
|
||||||
void initializeData (Configuration&, Database&);
|
void initializeData (Configuration&, Database&);
|
||||||
void initializeRules (Configuration&, Rules&);
|
void initializeRules (Configuration&, Rules&);
|
||||||
void initializeExtensions (Configuration&, Extensions&);
|
void initializeExtensions (Configuration&, Extensions&);
|
||||||
int dispatchCommand (int, const char**, Configuration&, Rules&);
|
int dispatchCommand (int, const char**, Configuration&, Rules&, Extensions&);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue