Dustin J. Mitchell
db23195f4d
Remove duplicate word ( #3834 )
...
* Remove duplicate word
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-04-01 22:42:42 +02:00
Tobias Predel
81ca04fc8c
Declare in corresponding header files and dissolve main.h ( #3796 )
...
* Declare in corresponding header files and dissolve main.h
Apply include-what-you-use
* Remove further unncessary includes
* Incorporate review comment
* Do not declare static functions and variables in header
* Adapt test
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-03-01 14:47:42 -05:00
Dustin J. Mitchell
aeeec16984
Handle 'until' and 'recur' simiar to handling of 'gc' ( #3753 )
...
This centralizes updates to recurrence and 'until' in Command, instead
of doing so in each individual command implementation.
This is preparatory to opening the TaskChampion replica in read-only
mode.
2025-01-18 02:20:41 -05:00
Felix Schurk
93356b39c3
add initial bulk run from pre-commit over all files
2024-07-29 22:34:51 +02:00
Felix Schurk
954d3f5058
add blank line between cmake.h header include to prevent sorting
...
* add required comment in the line below cmake.h include header
2024-07-29 22:33:17 +02:00
Dustin J. Mitchell
271d06cd9c
make TDB2.pending/completed non-public
...
References to methods on these fields are replaced with methods on TDB2,
several of which already existed.
2022-07-24 14:18:21 -04:00
Tomas Babej
493f36ecdd
CmdContext: Utilize new reason-providing validateWriteContext
2021-11-06 11:53:45 -04:00
Tomas Babej
5d8f8dac35
validateWriteContext: Refactor to return the underlying reason for invalidity directly
2021-11-06 11:53:44 -04:00
Tomas Babej
f5dce013ce
CmdContext: Expand the definition of an invalid write context to incllude tag exclusion
2021-11-06 11:53:44 -04:00
Tomas Babej
531881f651
validateWriteContext: Tag exclusion should also be detected as invalid write context
2021-11-06 11:53:43 -04:00
Tomas Babej
7de681aa3b
validateWriteContext: Apply early break when detected the OR operator
2021-11-06 11:53:42 -04:00
Tomas Babej
c69cbe8bfc
CmdContext: Remove old-style context during re-definition
...
This makes it easier to migrate from old-style context.<name>=value
context definition to new context.<name>.read=value and
context.<name>.write=value variables.
2021-09-28 21:07:46 -04:00
Tomas Babej
c28aa2f7e2
CmdContext: Fix typo
2021-09-28 00:57:52 -04:00
Tomas Babej
5f8ec9bbe0
CmdConfig: Extract write context validation into a separate method
2021-09-28 00:52:56 -04:00
Tomas Babej
03edf2e01c
CmdContext: Analyze the context filter for validity as modification
2021-09-18 14:15:47 -04:00
Tomas Babej
96fe962604
CmdCompletionContext: Fix typo
2021-09-18 14:15:47 -04:00
Tomas Babej
0bc92d6115
meta: Adjust copyright headers
2021-09-05 12:02:07 -04:00
Tomas Babej
fe6a6ca93b
compatibility: Explicitly specify template type to support older compilers
...
This makes curret development branch buildable on Ubuntu 18 / Centos 7 /
SUSE 15.
2021-04-03 15:01:39 -04:00
Tomas Babej
c701137313
CmdContext: Report context as not found if nothing was deleted
2021-04-03 15:01:39 -04:00
Tomas Babej
201b1c37b4
CmdContext: Allow user to define read-only / write-only contexts
2021-04-03 15:01:39 -04:00
Tomas Babej
4de23a3e20
CmdContext: Remove all types of context when deleting
2021-04-03 15:01:39 -04:00
Tomas Babej
062878022b
CmdContext: Expand information provided in 'context show'
2021-04-03 15:01:39 -04:00
Tomas Babej
a558ffcd42
CmdContext: List info about both read and write context
2021-04-03 15:01:39 -04:00
Tomas Babej
c0ded37f91
CmdContext: Discard .read/.write suffix when discovering contexts
2021-04-03 15:01:39 -04:00
Tomas Babej
41823c7939
CmdContext: Expand description
2021-04-03 15:01:39 -04:00
Tomas Babej
985aab0541
CmdContext: Define both read and write context
2021-04-03 15:01:39 -04:00
Tomas Babej
9017cd6e53
doc: Update copyright to 2021
2021-01-02 02:48:22 -05:00
Tomas Babej
a09f9d48ab
Update copyright to 2020
2020-11-21 12:27:05 -05:00
mrossinek
16d967ad01
Add missing newline
2019-03-02 19:43:13 -05:00
mrossinek
254e737e00
Fix #2002
2019-03-02 19:43:13 -05:00
Tomas Babej
8066e4e6e2
meta: Update copyright year
2019-01-01 08:46:21 -05:00
Simon Ruderich
e817dfc800
Always use https:// link for opensource.org
...
It was already used in a few places, make this consistent.
2018-03-04 14:53:07 +01:00
Mark Scannell
7af6db4c17
Portability: Updated to make main re-entrant()
...
- New INSTALL instructions to emscripten, and AUTHORS for contribution.
2018-01-31 19:45:07 -05:00
Paul Beckingham
be72058b31
l10n: Eliminated STRING_CMD_CONTEXT_*
2018-01-20 21:58:55 -05:00
Paul Beckingham
0de169bb10
Copyright 2018
2017-12-31 19:22:07 -05:00
Tomas Babej
255e02b7da
context: Do not allow show, list or none as new context names
...
- Thanks to silviof.
2017-07-27 19:00:43 +02:00
Paul Beckingham
73040f2679
CmdContext: Table headers consistent
2017-03-20 09:09:46 -04:00
Paul Beckingham
a50e65a134
Copyright update
2017-01-01 12:30:04 -05:00
Paul Beckingham
87757fb36f
util: Migrated optionalBlankLine from text
2016-12-11 17:46:06 -05:00
Paul Beckingham
355620c640
libhsared: migrating from local to libshared
2016-12-06 07:20:45 -05:00
Paul Beckingham
fda27a46bf
CmdContext: Migrated from ViewText to Table
2016-10-16 22:47:26 -04:00
Paul Beckingham
95f4989f77
Cleanup: Don't use string literals when character literals are needed
2016-10-14 22:27:34 -04:00
Paul Beckingham
724a4a02a0
Code formatting
2016-02-06 12:13:19 -05:00
Paul Beckingham
92f22149c0
TW-1735: context with no subcommand should do something
...
- Thanks to Simon Michael.
2016-01-11 21:05:33 -05:00
Paul Beckingham
641d232dea
Copyright: Updated to 2016
2015-12-31 15:06:43 -05:00
Paul Beckingham
116e5adaf2
CmdContext: Color only used for tty
2015-11-15 14:29:09 -05:00
Paul Beckingham
5d9ca9864e
Cmd*: Moved include to top of list, per flint++ recommendation
2015-11-01 19:53:19 -05:00
Tomas Babej
98973a9390
CmdContext: Handle errors in a consistent way
2015-10-30 16:33:16 -04:00
Paul Beckingham
a82558064b
Cleanup: Prep for '-Wextra'
2015-10-16 16:27:05 -04:00
Paul Beckingham
28d0c534b1
CmdContext: Added 'const' for method args that are const
2015-09-05 14:39:52 -04:00