mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
CmdDefault: Migrated to intervalSummarize
This commit is contained in:
parent
e6a27b1f72
commit
49f7c08457
2 changed files with 4 additions and 1 deletions
|
@ -26,6 +26,7 @@
|
||||||
|
|
||||||
#include <cmake.h>
|
#include <cmake.h>
|
||||||
#include <commands.h>
|
#include <commands.h>
|
||||||
|
#include <timew.h>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -39,7 +40,7 @@ int CmdDefault (Rules& rules, Database& database)
|
||||||
auto interval = database.getLatestInterval ();
|
auto interval = database.getLatestInterval ();
|
||||||
if (interval.isStarted () && ! interval.isEnded ())
|
if (interval.isStarted () && ! interval.isEnded ())
|
||||||
std::cout << "\n"
|
std::cout << "\n"
|
||||||
<< database.getLatestInterval ().summarize ()
|
<< intervalSummarize (rules, database.getLatestInterval ())
|
||||||
<< "\n";
|
<< "\n";
|
||||||
else
|
else
|
||||||
std::cout << "\n"
|
std::cout << "\n"
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
#include <Database.h>
|
#include <Database.h>
|
||||||
#include <Rules.h>
|
#include <Rules.h>
|
||||||
#include <Extensions.h>
|
#include <Extensions.h>
|
||||||
|
#include <Interval.h>
|
||||||
#include <Log.h>
|
#include <Log.h>
|
||||||
#include <Color.h>
|
#include <Color.h>
|
||||||
|
|
||||||
|
@ -44,6 +45,7 @@ std::vector <std::string> getKeywords (const std::vector <std::string>&);
|
||||||
|
|
||||||
// helper.cpp
|
// helper.cpp
|
||||||
Color tagColor (const Rules&, const std::string&);
|
Color tagColor (const Rules&, const std::string&);
|
||||||
|
std::string intervalSummarize (const Rules&, const Interval&);
|
||||||
|
|
||||||
// utiŀ.cpp
|
// utiŀ.cpp
|
||||||
std::string osName ();
|
std::string osName ();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue