mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-27 12:16:25 +02:00
init: Propagated args, rules, database and log to CmdStart
This commit is contained in:
parent
fc3b90f475
commit
fbe6584447
3 changed files with 42 additions and 37 deletions
|
@ -25,10 +25,15 @@
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <cmake.h>
|
||||
#include <commands.h>
|
||||
#include <iostream>
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
int CmdStart ()
|
||||
int CmdStart (
|
||||
const std::vector <std::string>& args,
|
||||
Rules& rules,
|
||||
Database& database,
|
||||
Log& log)
|
||||
{
|
||||
std::cout << "[start: begin a new tracking interval]\n";
|
||||
|
||||
|
|
|
@ -34,24 +34,24 @@
|
|||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
int CmdClear ();
|
||||
int CmdConfig ();
|
||||
int CmdContinue ();
|
||||
int CmdDefault ();
|
||||
int CmdDefine (Rules&);
|
||||
int CmdDiagnostics (Rules&, Database&, Extensions&, Log&);
|
||||
int CmdExport ();
|
||||
int CmdExtensions (Rules&, Extensions&);
|
||||
int CmdGaps ();
|
||||
int CmdHelpUsage ();
|
||||
int CmdHelp (const std::vector <std::string>&, Log&);
|
||||
int CmdLog (const std::vector <std::string>&, Log&);
|
||||
int CmdImport ();
|
||||
int CmdReport ();
|
||||
int CmdStart ();
|
||||
int CmdStop ();
|
||||
int CmdTags ();
|
||||
int CmdTrack ();
|
||||
int CmdUndo ();
|
||||
int CmdClear ( );
|
||||
int CmdConfig ( );
|
||||
int CmdContinue ( );
|
||||
int CmdDefault ( );
|
||||
int CmdDefine ( Rules& );
|
||||
int CmdDiagnostics ( Rules&, Database&, Extensions&, Log&);
|
||||
int CmdExport ( );
|
||||
int CmdExtensions ( Rules&, Extensions& );
|
||||
int CmdGaps ( );
|
||||
int CmdHelpUsage ( );
|
||||
int CmdHelp (const std::vector <std::string>&, Log&);
|
||||
int CmdLog (const std::vector <std::string>&, Log&);
|
||||
int CmdImport ( );
|
||||
int CmdReport ( );
|
||||
int CmdStart (const std::vector <std::string>&, Rules&, Database&, Log&);
|
||||
int CmdStop ( );
|
||||
int CmdTags ( );
|
||||
int CmdTrack ( );
|
||||
int CmdUndo ( );
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue