Commit graph

600 commits

Author SHA1 Message Date
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
Thomas Lauf
f1b3b3bb72 Refactor CmdDefault
- restore original command behaviour:return exit code 0 if tracking is active, 1 if not
- show welcome screen on first run
- add/update tests
2018-01-05 23:34:16 +01:00
Thomas Lauf
ecb8aa447c Refactor CmdMove: Fail early if no id given 2018-01-05 14:27:25 +01:00
Thomas Lauf
35e5098b51 Extract join function
- use join function for std::vector<std::string> from libshared
- add join function for std::set<std::string>
- add joinQuotedIfNeeded for std::set<std::string> and std::vector<std::string>
- add unit tests
- These functions could be replaced with templates and moved to libshared.
2018-01-05 14:25:57 +01:00
Thomas Lauf
95380bbe96 Optimize includes 2018-01-05 14:21:37 +01:00
Paul Beckingham
88d644d193 Copyright 2018 2017-12-31 19:37:13 -05:00
Thomas Lauf
28c39f8f7e Fix filter for summary when only a date is given
- add test
2017-12-07 09:26:21 +01:00
Thomas Lauf
772c5d4946 TI-90: Update help for command 'continue' 2017-12-05 16:47:35 +01:00
Thomas Lauf
b2bc91402f TI-90: Make 'continue' accept a date range
- Do not set range end in command line, if not given
- Let commands set end of filter, if required
2017-12-05 16:47:13 +01:00
Thomas Lauf
a01b9ade9a TI-90: Make 'continue' accept a date 2017-12-02 19:17:54 +01:00
Thomas Lauf
dc6d3b9672 Commands: Reduce code duplication
- Extract function to gather ids
2017-11-21 23:12:45 +01:00
Thomas Lauf
c5b2e5a5cd Fix typos 2017-11-06 22:50:52 +01:00
Thomas Lauf
c9a7a59679 Correct typos 2017-09-14 18:33:05 +02:00
Thomas Lauf
b619b2b574 docs: Fix internal documentation for continue command 2017-04-14 11:48:27 +02:00
Thomas Lauf
735fb10e41 docs: Update documentation for continue command 2017-04-13 23:55:12 +02:00
Paul Beckingham
b714abfc37 Code Cleanup: Test commit 2017-04-12 17:13:56 -04:00
Paul Beckingham
2bee90fd79 Code Cleanup: Test commit 2017-04-12 17:13:34 -04:00
Paul Beckingham
3111f0dd7c Code Cleanup: Test commit 2017-04-12 17:11:39 -04:00
Paul Beckingham
f65c672b73 CmdLengthen: Test commit 2017-04-10 23:54:25 -04:00
Thomas Lauf
9b0f8e8c15 TI-68: Let commands convert synthetic intervals before modifying them
- command 'lengthen'
- command 'move'
- command 'shorten'
- command 'tag'
- command 'untag'
2017-04-08 14:51:55 +02:00
Thomas Lauf
a5dc0cd385 TI-27: Continue tracking by ID
- Make command 'continue' process ids
- Fix test: immediate start stop creates empty intervals?
2017-04-06 22:46:52 +02:00
Thomas Lauf
ad67539f94 TI-58: Fix bug 'Delete command is not always deleting'
- Update database before deleting sythetic intervals
- Make Exclusion::ranges work with open interval
2017-04-05 22:53:53 +02:00
Paul Beckingham
c283c9d2c4 TI-70: Timew starts a new interval even if a current interval contains the same set of tags
- Thanks to Thomas Babej.
2017-04-04 18:43:33 -04:00
Thomas Lauf
cef51697ee TI-29: Fix issue "timew config can't add new value"
- Add code to enter a new value for a config which is defined by Rules.cpp
  but not found in the configuration file.
2017-03-09 20:41:20 +01:00
Paul Beckingham
f01cdbcf7f CmdHelp: Updated named date list 2017-03-08 08:16:43 -05:00
Paul Beckingham
3000dceca5 CmdChart: Corrected use of obsolete date names 2017-03-08 08:08:43 -05:00
Paul Beckingham
9051e41af5 libshared: Updated to 0dbe6c2818d4dc99f5d0089d6afb1559ed05ebf7 2017-03-04 19:18:31 -05:00
Paul Beckingham
addb89e13d CmdChart: Config defaults make the rules defaults redundant
- Do not need both
2017-02-25 15:15:51 -05:00
Paul Beckingham
57bc4d71c8 TI-65: The 'tags' command should support a filter 2017-02-25 15:07:18 -05:00
Paul Beckingham
848c6e33fc CmdChart: Default value handling
- Added default value ('15') for 'rules.<type>.cell'.
- Corrected EINVAL and ERANGE handling inside Rule::getInteger.
- Made the error message for the above more specific.
- Added the '> 0' constraint to the man page.
2017-02-25 13:00:20 -05:00
Thomas Lauf
58f07d0266 TI-46: Display error in visual reports (day,week,month)
- Fix calculation of end_mins
- Add tests
2017-02-18 23:04:44 +01:00
Thomas Lauf
c944aebacc TI-39: Bogus command line option causes segfault
- Return error message for invalid values in CmdChart
- Add tests (partially moved from cli.t)
2017-02-13 20:58:37 +01:00
Federico Hernandez
d15e99fe35 Added weekday hints 2017-02-10 00:17:51 +01:00
Thomas Lauf
e505129d5c TI-64: Command 'stop' with date before current interval's start date causes segfault
- Show error message if stop date is before current interval's start date
- Add test for this use case
2017-02-09 08:58:22 -05:00
Paul Beckingham
2e10962d4e CmdHelp: Typos 2017-02-01 07:54:01 -05:00
Tomas Babej
fac6b03df2 commands: Add preliminary version of 'resize' command 2017-01-09 18:33:14 -05:00
Paul Beckingham
2f0b00b721 CmdDiagnostics: Updated to libshared cppCompliance call 2017-01-08 14:12:37 -05:00
Paul Beckingham
1d88ec386f util: Migrated osName to libshared 2017-01-08 11:43:16 -05:00
Paul Beckingham
1091cc2085 Copyright update 2017-01-01 12:45:32 -05:00
Jelle van der Waa
8f74cdeff3 TI-39: Bogs command line option segfaults
num_lines is set to zero when the conversion fails which segfaults later
when num_lines is used to create the Composite vector. Set the default
value for num_lines to 1 to resolve the issue of bad input segfaulting.
2016-11-05 11:36:06 -04:00
Paul Beckingham
77ec509cff TI-47: first call successfully creates new database but returns exit status 1
- Thanks to Georg Sauthoff.
2016-09-23 19:37:16 -04:00
Paul Beckingham
28e1dffec5 Build: REmoved compiler warning 2016-09-09 22:33:15 -04:00
Paul Beckingham
a37e4746ad TI-34: Make timew more user-friendly by adding --help and default output
- Thanks to Felix Wolfsteller.
2016-08-12 08:10:32 -04:00
Paul Beckingham
eb50862c1e WWW-12: yesterday tag not recognised
- Thanks to Michel Crucifix.
2016-08-06 18:09:46 -04:00
Paul Beckingham
64cf3fad76 CmdHelp: Added extension list to the 'help' command 2016-08-05 17:40:33 -04:00
Paul Beckingham
4c1568533e CmdFill: Disabled for beta. It is not ready. 2016-07-24 17:31:43 -04:00
Paul Beckingham
0fe7be396d CmdHelp: Added 'fill' command help 2016-07-24 16:18:08 -04:00
Paul Beckingham
32e102b8c4 CmdFill: Added 'fill' command for easier adjustment 2016-07-24 16:16:37 -04:00
Paul Beckingham
d75c5fc46a CmdStop: Cleanup 2016-07-24 14:34:57 -04:00
Paul Beckingham
396135e062 Cleanup: Removed useless comment 2016-07-24 14:34:34 -04:00