mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
CmdStop: Migrated to intervalSummarize
This commit is contained in:
parent
b7cb6c136b
commit
259c78ce01
1 changed files with 3 additions and 2 deletions
|
@ -26,6 +26,7 @@
|
||||||
|
|
||||||
#include <cmake.h>
|
#include <cmake.h>
|
||||||
#include <commands.h>
|
#include <commands.h>
|
||||||
|
#include <timew.h>
|
||||||
#include <Interval.h>
|
#include <Interval.h>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
@ -54,7 +55,7 @@ int CmdStop (
|
||||||
log.write ("debug", std::string ("Stopped tracking: ") + latest.serialize ());
|
log.write ("debug", std::string ("Stopped tracking: ") + latest.serialize ());
|
||||||
|
|
||||||
// User feedback.
|
// User feedback.
|
||||||
std::cout << latest.summarize ();
|
std::cout << intervalSummarize (rules, latest);
|
||||||
|
|
||||||
// If tags were specified, and after removing those tags, there are still
|
// If tags were specified, and after removing those tags, there are still
|
||||||
// tags remaining, then add a contiguous interval.
|
// tags remaining, then add a contiguous interval.
|
||||||
|
@ -73,7 +74,7 @@ int CmdStop (
|
||||||
log.write ("debug", std::string ("Started tracking: ") + latest.serialize ());
|
log.write ("debug", std::string ("Started tracking: ") + latest.serialize ());
|
||||||
|
|
||||||
// User feedback.
|
// User feedback.
|
||||||
std::cout << latest.summarize ();
|
std::cout << intervalSummarize (rules, latest);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue