mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
CmdDiagnostics: Removed log
This commit is contained in:
parent
1e65133efd
commit
4b24f86b0d
3 changed files with 3 additions and 5 deletions
|
@ -25,7 +25,6 @@
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <cmake.h>
|
||||
#include <Log.h>
|
||||
#include <format.h>
|
||||
#include <timew.h>
|
||||
#include <algorithm>
|
||||
|
@ -62,7 +61,7 @@ std::string describeFile (File& file)
|
|||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
int CmdDiagnostics (Rules& rules, Database& database, Extensions& extensions, Log& log)
|
||||
int CmdDiagnostics (Rules& rules, Database& database, Extensions& extensions)
|
||||
{
|
||||
std::stringstream out;
|
||||
out << "\n"
|
||||
|
@ -214,7 +213,6 @@ int CmdDiagnostics (Rules& rules, Database& database, Extensions& extensions, Lo
|
|||
|
||||
out << "\n";
|
||||
std::cout << out.str ();
|
||||
log.write ("info", out.str ());
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
#include <Extensions.h>
|
||||
#include <Log.h>
|
||||
|
||||
int CmdDiagnostics ( Rules&, Database&, Extensions&, Log&);
|
||||
int CmdExport (CLI&, Rules&, Database&, Log&);
|
||||
int CmdExtensions ( Rules&, Extensions& );
|
||||
int CmdGaps ( );
|
||||
|
@ -51,5 +50,6 @@ int CmdConfig ( );
|
|||
int CmdContinue ( Rules&, Database& );
|
||||
int CmdDefault ( Rules&, Database& );
|
||||
int CmdDefine (CLI&, Rules&, Database& );
|
||||
int CmdDiagnostics ( Rules&, Database&, Extensions&);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -206,7 +206,6 @@ int dispatchCommand (
|
|||
{
|
||||
// These signatures are æxpected to be all different, therefore no
|
||||
// command to fn mapping.
|
||||
else if (command == "diagnostics") status = CmdDiagnostics ( rules, database, extensions, log);
|
||||
else if (command == "export") status = CmdExport (cli, rules, database, log);
|
||||
else if (command == "extensions") status = CmdExtensions ( rules, extensions );
|
||||
else if (command == "gaps") status = CmdGaps ( );
|
||||
|
@ -222,6 +221,7 @@ int dispatchCommand (
|
|||
else if (command == "config") status = CmdConfig ( );
|
||||
else if (command == "continue") status = CmdContinue ( rules, database );
|
||||
else if (command == "define") status = CmdDefine (cli, rules, database );
|
||||
else if (command == "diagnostics") status = CmdDiagnostics ( rules, database, extensions);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue