mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
CmdDefault: Cleaned up feedback
This commit is contained in:
parent
a570e17e86
commit
e4ee873d04
1 changed files with 1 additions and 7 deletions
|
@ -32,16 +32,10 @@
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
int CmdDefault (Rules& rules, Database& database)
|
||||
{
|
||||
// TODO If there is a default command.
|
||||
// TODO Run it.
|
||||
// TODO Else.
|
||||
|
||||
// Load the most recent interval, summarize and display.
|
||||
auto interval = database.getLatestInterval ();
|
||||
if (interval.isStarted () && ! interval.isEnded ())
|
||||
std::cout << "\n"
|
||||
<< intervalSummarize (rules, database.getLatestInterval ())
|
||||
<< "\n";
|
||||
std::cout << intervalSummarize (rules, database.getLatestInterval ());
|
||||
else
|
||||
std::cout << "There is no active time tracking.\n";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue