mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
CmdDefault: Obeys :quiet
This commit is contained in:
parent
e202bcb5ce
commit
39daf9a422
1 changed files with 9 additions and 6 deletions
|
@ -31,6 +31,8 @@
|
|||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
int CmdDefault (Rules& rules, Database& database)
|
||||
{
|
||||
if (rules.getBoolean ("verbose"))
|
||||
{
|
||||
// Load the most recent interval, summarize and display.
|
||||
auto interval = database.getLatestInterval ();
|
||||
|
@ -38,6 +40,7 @@ int CmdDefault (Rules& rules, Database& database)
|
|||
std::cout << intervalSummarize (rules, database.getLatestInterval ());
|
||||
else
|
||||
std::cout << "There is no active time tracking.\n";
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue