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 <cmake.h>
|
||||||
#include <Log.h>
|
|
||||||
#include <format.h>
|
#include <format.h>
|
||||||
#include <timew.h>
|
#include <timew.h>
|
||||||
#include <algorithm>
|
#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;
|
std::stringstream out;
|
||||||
out << "\n"
|
out << "\n"
|
||||||
|
@ -214,7 +213,6 @@ int CmdDiagnostics (Rules& rules, Database& database, Extensions& extensions, Lo
|
||||||
|
|
||||||
out << "\n";
|
out << "\n";
|
||||||
std::cout << out.str ();
|
std::cout << out.str ();
|
||||||
log.write ("info", out.str ());
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,7 +33,6 @@
|
||||||
#include <Extensions.h>
|
#include <Extensions.h>
|
||||||
#include <Log.h>
|
#include <Log.h>
|
||||||
|
|
||||||
int CmdDiagnostics ( Rules&, Database&, Extensions&, Log&);
|
|
||||||
int CmdExport (CLI&, Rules&, Database&, Log&);
|
int CmdExport (CLI&, Rules&, Database&, Log&);
|
||||||
int CmdExtensions ( Rules&, Extensions& );
|
int CmdExtensions ( Rules&, Extensions& );
|
||||||
int CmdGaps ( );
|
int CmdGaps ( );
|
||||||
|
@ -51,5 +50,6 @@ int CmdConfig ( );
|
||||||
int CmdContinue ( Rules&, Database& );
|
int CmdContinue ( Rules&, Database& );
|
||||||
int CmdDefault ( Rules&, Database& );
|
int CmdDefault ( Rules&, Database& );
|
||||||
int CmdDefine (CLI&, Rules&, Database& );
|
int CmdDefine (CLI&, Rules&, Database& );
|
||||||
|
int CmdDiagnostics ( Rules&, Database&, Extensions&);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -206,7 +206,6 @@ int dispatchCommand (
|
||||||
{
|
{
|
||||||
// These signatures are æxpected to be all different, therefore no
|
// These signatures are æxpected to be all different, therefore no
|
||||||
// command to fn mapping.
|
// 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 == "export") status = CmdExport (cli, rules, database, log);
|
||||||
else if (command == "extensions") status = CmdExtensions ( rules, extensions );
|
else if (command == "extensions") status = CmdExtensions ( rules, extensions );
|
||||||
else if (command == "gaps") status = CmdGaps ( );
|
else if (command == "gaps") status = CmdGaps ( );
|
||||||
|
@ -222,6 +221,7 @@ int dispatchCommand (
|
||||||
else if (command == "config") status = CmdConfig ( );
|
else if (command == "config") status = CmdConfig ( );
|
||||||
else if (command == "continue") status = CmdContinue ( rules, database );
|
else if (command == "continue") status = CmdContinue ( rules, database );
|
||||||
else if (command == "define") status = CmdDefine (cli, rules, database );
|
else if (command == "define") status = CmdDefine (cli, rules, database );
|
||||||
|
else if (command == "diagnostics") status = CmdDiagnostics ( rules, database, extensions);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue