Thomas Lauf
34bba44d38
Replace CLI::getFilter by CLI::getRange and CLI::getTags
...
- Add CLI::getRange
- Make CLI::getTags return a set instead of a vector. This has the side effect that the tags are sorted now...
- Replace variable 'filter' by 'range' and 'tags'. Variable 'filter' was just a wrapper, better use the components directly
2023-06-17 14:19:02 +02:00
Thomas Lauf
2535c2c399
Cleanup includes
...
- Remove unused includes
- Use '<..>' style consistently
- Strip any paths from include
- Replace deprecated C++ headers
- Sort includes according to LLVM rules
https://llvm.org/docs/CodingStandards.html#include-style
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-06-17 14:19:02 +02:00
Thomas Lauf
14bed139f6
Update copyrights
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-04-04 22:44:44 +02:00
Thomas Lauf
3c6caff67b
Show error message if command track is called with an id
...
Closes #439
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2022-12-29 14:24:37 +01:00
Tomas Babej
e5870380a4
doc: Update copyright to 2021
2021-01-02 02:52:39 -05:00
Shaun Ruffell
9d43727c09
Use only the current interval duration when summarizing
...
There are several instances where the "total" reported in the interval
summary is confusing because the summarize function would walk backward
and add all intervals with the same set of tags.
Closes #248 and #308
Signed-off-by: Shaun Ruffell <sruffell@sruffell.net>
2020-08-21 21:41:20 +02:00
Thomas Lauf
a4a16ec2c5
Use const bool
uniformly for variable 'verbose'
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-13 10:12:16 +02:00
Thomas Lauf
9ae3ace109
Make getFilter(cli) a method of CLI
2020-05-10 21:44:30 +02:00
Thomas Lauf
ad58309159
Update Copyright
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-04-19 12:41:23 +02:00
Thomas Lauf
28da1b55f2
Hoist verbose flag
2020-02-23 19:03:54 +01:00
Thomas Lauf
d64017a7a6
Update copyright dates
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-10-18 10:59:16 +02:00
Thomas Lauf
f72c4fda52
Extract class Journal from class Database
...
- const-ify Transaction and UndoAction
- Clang-tidying
2019-06-19 18:05:44 +02:00
Thomas Lauf
9dd106116c
Let Interval inherit from Range
...
- Remove 1 level of indirection
- Remove public field Interval::range (instead use interval directly)
2018-09-19 06:32:56 +02:00
Thomas Lauf
4f5eb6eb0c
Make warning about new tags adhere to :quiet hint
2018-09-07 10:13:22 +02:00
Thomas Lauf
cfdd3680a4
#9 TI-1: Move starting and stopping of transactions to commands
2018-07-22 00:01:31 +02:00
Simon Ruderich
2271bd9eea
Use https:// link for opensource.org
2018-03-16 23:11:08 +01:00
Thomas Lauf
f617588f57
TI-102: Improve interval flattening for CmdTrack
...
- Report on added intervals, not on entered interval
2018-01-19 16:25:22 +01:00
Paul Beckingham
88d644d193
Copyright 2018
2017-12-31 19:37:13 -05:00
Paul Beckingham
1091cc2085
Copyright update
2017-01-01 12:45:32 -05:00
Paul Beckingham
eab29cf594
CmdTrack: validate must occur before flattening
2016-07-09 09:46:45 -04:00
Paul Beckingham
f66127f473
validate: Renamed validateInterval to vaildate, and integrated
2016-07-07 22:24:48 -04:00
Paul Beckingham
ffe326ed48
Cmd*: Added validateInterval calls prior to all interval modification
2016-07-02 13:59:08 -04:00
Paul Beckingham
614619c11f
helper: Propagated database to intervalSummarize
2016-05-14 14:43:06 -04:00
Paul Beckingham
e1e1a30a98
Range: Renamed meethods by prepending 'is_'
2016-05-12 08:32:40 -04:00
Paul Beckingham
0d0bb19b35
CmdTrack: Removed unused vector
2016-05-10 19:59:16 -04:00
Paul Beckingham
86ff9189bd
data: Renamed 'collapse' to 'flatten', for accuracy
2016-05-10 19:57:45 -04:00
Paul Beckingham
c793fed8d7
CmdTrack: If the tracked interval is open or trivial, delegate to CmdStart
2016-05-03 08:28:36 -04:00
Paul Beckingham
89ecb27742
CmdTrack: Udated to new API
2016-04-28 20:32:48 -04:00
Paul Beckingham
34c0cc81e7
helper: Renamed createFilterIntervalFromCLI to getFilter
2016-04-28 08:48:37 -04:00
Paul Beckingham
5899b51295
CmdTrack: Now splits intervals
2016-04-28 00:04:00 -04:00
Paul Beckingham
e7dd8edf26
Filter: Merged Filter and Interval, removing Filter
2016-04-22 22:10:26 -04:00
Paul Beckingham
b3b6fe7749
CmdTrack: Made use of new helper functions
2016-04-15 19:51:47 -04:00
Paul Beckingham
04216b8a62
CmdTrack: Removed old comments
2016-04-11 23:17:05 -04:00
Paul Beckingham
23c7e420b5
helper: Renamed initilizeFilterFromCLI to createFilterFromCLI and changeѕ usage
2016-04-08 08:17:52 -04:00
Paul Beckingham
039f49c2e6
CmdTrack: Filter now created from CLI in helper
2016-04-08 07:50:38 -04:00
Paul Beckingham
fb6da21fe7
CmdTrack: const args
2016-04-07 23:32:39 -04:00
Paul Beckingham
aed0d02c64
CmdTrack: Implemented simple track
2016-04-06 22:51:07 -04:00
Paul Beckingham
0305dee768
CmdTrack: Removed log
2016-04-06 20:30:04 -04:00
Paul Beckingham
f7619a138d
init: Propagated cli, rules, database and log
2016-04-06 08:10:32 -04:00
Paul Beckingham
25042cbe71
Commands: Better 'unimplemented' command descriptions
2016-03-19 13:28:37 -04:00
Paul Beckingham
9bfeeaf8b4
CmdTrack: Outlined processing
2016-03-19 09:37:53 -04:00
Paul Beckingham
b0911ca240
Dispatch: All commands now return the exit status
2016-03-01 01:16:29 -05:00
Paul Beckingham
a95d0e9b64
CmdTrack: Added stub
2016-03-01 00:56:08 -05:00