Dustin J. Mitchell
7d17740ca8
use a generic Write instance for command output
2020-12-20 19:45:24 -05:00
Dustin J. Mitchell
6b550e7516
implement cli help
2020-12-20 18:42:21 -05:00
Tomas Babej
3964e7f3de
Changelog: Fix attribution
2020-12-20 17:04:07 -05:00
Tomas Babej
9d32b34b49
docs: Add information about unicode characters
2020-12-20 15:37:01 -05:00
Tomas Babej
e6edac7edd
build: Update libshared to version supporting Unicode 11
...
Closes #2333 .
2020-12-20 15:27:28 -05:00
Dustin J. Mitchell
2c579b9f01
Switch to a command-line API closer to TaskWarrior
...
* Use a parser (rather than clap) to process the command line
* Outline some generic support for filtering, reporting, modifying, etc.
* Break argument parsing strictly from invocation, to allow independent testing
2020-12-19 16:40:09 -05:00
Dustin J. Mitchell
87bb829634
Merge pull request #96 from srfraser/i88_append
...
subcommands: prepend and append to description
2020-12-18 16:38:38 -05:00
Simon Fraser
ee341ac7d5
subcommands: prepend and append to description
...
This currently uses format!() which may not be the best
option. Fixes #88
2020-12-17 12:59:50 +00:00
Tomas Babej
7dfff13b06
tests: Allow match for 8 bit color code in color.rules.t
...
The test proper coloring for overdue task from an hour ago fails,
even though the task is properly colored. This is because the blue color
gets upgraded to blue color in 256-color scheme, and hence is
represented with 38;5;4m instead of 34m.
Support both representations of the blue color in the given test.
2020-12-14 23:13:44 -05:00
Tomas Babej
982308412d
libshared: Updated to 418a1873aea42f0ed719218628b0ee166b2c281c
2020-12-14 22:37:13 -05:00
Tomas Babej
e37ab8a9ed
rules: Reduce code duplication
2020-12-14 22:35:38 -05:00
Tomas Babej
2336c4039d
rules: Mark coloring implementations that are not consistent with their corresponding virtual tags
2020-12-14 22:35:37 -05:00
Tomas Babej
2adc5994d5
rules: Make colorizeOverdue properly process dateEarlierToday date state
...
This makes the coloring implementation consistent with the
Task::is_overdue() method.
Closes #1998 .
2020-12-14 22:35:37 -05:00
Tomas Babej
fbf8fe688e
CmdCalendar: Properly colorize overdue task from today
...
Even if task is due today, but the due time is in the past, it is
considered overdue according to the implementation of Task::is_overdue
method.
Make coloring in the calendar output consistent.
2020-12-14 22:35:36 -05:00
Tomas Babej
bfae79eac7
CmdCalendar: Remove accidental repeated blending
2020-12-14 22:35:35 -05:00
Tomas Babej
83a55ccfe5
tests: Add test for coloring an overdue task from earlier today
2020-12-14 22:35:34 -05:00
Tomas Babej
eb32c9d8d7
Context: Correctly handle XDG_CONFIG_HOME paths ending with '/'
2020-12-10 23:49:00 -05:00
Tomas Babej
f0e34a7ef7
Context: Do not append .config if XDG_CONFIG_HOME is defined
...
- Thanks to Julien Rabinow.
2020-12-10 23:34:59 -05:00
Tomas Babej
b64e754000
cmake: Bring back commit.h.in and cmake.h.in
2020-12-10 22:14:04 -05:00
Tomas Babej
8013654577
cmake: Add additional ignored files for make_package
...
Closes #2369 .
- Thanks to Heiko Becker.
2020-12-10 21:52:56 -05:00
Tomas Babej
1a52c59356
tests: Add test to ensure 64 bit time_t
2020-12-10 00:51:41 -05:00
Tomas Babej
af5e81434f
tests: Parallelize more when compiling TW
2020-12-10 00:08:44 -05:00
Tomas Babej
6d74b62dc4
docs: Add entries for alternate location of taskrc to ChangeLog/NEWS
2020-12-09 22:57:57 -05:00
Tomas Babej
1b14ee80bc
docs: Clean up ChangeLog and NEWS with duplicated entries from 2.5.2
...
Many changes made in the 2.6.0 were cherry-picked into 2.5.2 release,
make sure those are not duplicated in 2.6.0 changelog / news.
2020-12-09 22:49:32 -05:00
Tomas Babej
962a8fbe9a
AUTHORS: Add Julien among authors
2020-12-09 22:14:28 -05:00
Tomas Babej
5dc42df7d0
Context: Correctly respect empty XDG_CONFIG_HOME
2020-12-09 21:21:17 -05:00
Tomas Babej
1f98b9d128
Context: Adjust styling
2020-12-09 20:35:13 -05:00
Julien Rabinow
dea098d155
update docs to specify XDG_CONFIG_HOME is a valid option
2020-12-09 20:15:22 -05:00
Julien Rabinow
5256797ea9
add support for XDG_CONFIG_HOME
2020-12-09 20:15:22 -05:00
Julien Rabinow
46b553dd8c
reorder code to be in same order as comments (intuitive order)
2020-12-09 20:15:22 -05:00
Julien Rabinow
1aa77c9ede
fix home_dir variable definition
2020-12-09 20:15:22 -05:00
Tomas Babej
d29ddec34f
NEWS: Fix URL for issue submission
2020-12-08 00:44:33 -05:00
Tomas Babej
4d5d901214
NEWS: Fix URL for issue submission
2020-12-08 00:43:14 -05:00
Tomas Babej
fcfe01f301
recur: Prevent infinite loops with 0 periods
...
Specifying a recurrence interval that amounts to a zero, like 'P0M', 0q
or 0m causes task to fall into an infinite loop when trying to determine
next recurrence dates.
Detect scenarios with zero-length recurrence interval and throw an
exception.
Closes #2262 .
2020-12-06 20:58:26 -05:00
Tomas Babej
ccb222a31b
tests: Make faketime tests less susceptible to race conditions
...
The duration can be 10:01 if the original task call happened a split
second before the faketime fixation of +10 minutes.
Use more relaxed regular expresison to check.
2020-12-06 12:02:17 -05:00
Tomas Babej
83f71520d2
tests: Make faketime tests less susceptible to race conditions
...
The duration can be 10:01 if the original task call happened a split
second before the faketime fixation of +10 minutes.
Use more relaxed regular expresison to check.
2020-12-06 12:00:38 -05:00
Tomas Babej
ee15bfa1db
tests: Skip the diagnostics test on Ubuntu 16.04
...
This is a byproduct of recent bump to C++17 compliant compilers. Ubuntu
16.04 does not have C++17 compliant compiler, but it's still useful to
for us to test 2.5.3 there as the branch does not actually use any of
the C++17 features not available on gcc on Ubuntu.
2020-12-06 11:48:41 -05:00
Tomas Babej
54cfc6cab9
DEVELOPER: Change current release branch version
2020-12-06 11:13:30 -05:00
Tomas Babej
36594df1a9
docs: Update test suite requirements
2020-12-06 11:13:15 -05:00
Tomas Babej
c223b0694c
docs: Update compiler requirements
2020-12-06 11:12:58 -05:00
Max Rossmannek
fdaabcf956
Update diag.t to correct C++ version
...
The default C++ version was updated in 4729876
and this commit reflects
this change in the test.
2020-12-06 10:50:30 -05:00
Paul Beckingham
0202898732
Updated build to use C++17 by default
2020-12-06 10:50:13 -05:00
Tomas Babej
f2abee3606
travis: Preserve Ubuntu 16.04
2020-12-06 10:11:03 -05:00
Tomas Babej
c6ec416e30
ci: Rename Arch container to make it clear we're testing on rolling base
2020-12-06 10:09:53 -05:00
Tomas Babej
9a193e26ec
ci: Add support for CentOS 8
2020-12-06 10:09:46 -05:00
Tomas Babej
2657880ff3
ci: Replace F28 and F29 with F31, F32 and F33
2020-12-06 10:09:39 -05:00
Tomas Babej
497262d23c
ci: Add Ubuntu 20.04
2020-12-06 10:09:31 -05:00
Tomas Babej
1b745bc505
ci: Properly setup en_US.UTF-8 locale for Ubuntu containers
2020-12-06 10:09:20 -05:00
Max Rossmannek
2620714b43
Fix Arch docker image
2020-12-06 10:01:54 -05:00
Max Rossmannek
4ebf611b91
Fix faketime packages
2020-12-06 10:01:45 -05:00