Commit graph

3257 commits

Author SHA1 Message Date
dependabot[bot]
df9112cee4
Bump sigstore/cosign-installer from 3.1.1 to 3.1.2 (#556) 2023-09-05 16:11:56 +02:00
Thomas Lauf
a72659f753 Move test for 'untag' from 'tag.t' to 'untag.t'
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-08-11 20:50:29 +02:00
Thomas Lauf
8e96ad5229 Add functions to add/remove a set of tags to/from an interval
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-08-11 19:25:47 +02:00
Thomas Lauf
c2c4691a23 Add macOS 13 test runner
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-08-11 15:51:07 +02:00
Thomas Lauf
bddb874034 Improve configurability of CMake install directories
Make installation of man pages configurable per section
Use configuration variable TIMEW_BINDIR
Update documentation

Closes #553

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-08-11 15:30:26 +02:00
Thomas Lauf
be0243ba1a Update ChangeLog
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-08-04 23:17:03 +02:00
quazgar
32ac226fec
DOC: Update docs. (#554)
Signed-off-by: Quazgar <quazgar@posteo.de>
2023-08-04 23:14:53 +02:00
Thomas Lauf
5dc9925cde Update AUTHORS, ChangeLog
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-07-31 22:49:05 +02:00
Iúri Archer
4469e9056a
Add retag command (#551)
Closes #515 

---------

Signed-off-by: cyberme0w <iuri_archer@hotmail.com>
2023-07-31 22:45:08 +02:00
Thomas Lauf
a2374fb67b Update AUTHORS, ChangeLog
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-07-29 15:45:01 +02:00
Tadeas Uhlir
edcc9b102d Fix documentation since macOS is now supported
Signed-off-by: Tadeas Uhlir <tadeas.uhlir@gmail.com>
2023-07-29 15:40:41 +02:00
Tadeas Uhlir
ae5f8fc279 Make XDG base dirs work on all UNIX like systems
Signed-off-by: Tadeas Uhlir <tadeas.uhlir@gmail.com>
2023-07-29 15:40:41 +02:00
dependabot[bot]
bcf466eb37 Bump sigstore/cosign-installer from 3.1.0 to 3.1.1
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) from 3.1.0 to 3.1.1.
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](https://github.com/sigstore/cosign-installer/compare/v3.1.0...v3.1.1)

---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-04 23:30:01 +02:00
dependabot[bot]
4a3171e3da Bump sigstore/cosign-installer from 3.0.5 to 3.1.0
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) from 3.0.5 to 3.1.0.
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](https://github.com/sigstore/cosign-installer/compare/v3.0.5...v3.1.0)

---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-27 11:44:34 +02:00
Thomas Lauf
04dc8f36e7 Update AUTHORS, ChangeLog
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-06-23 20:06:22 +02:00
Shaun Ruffell
7a75210ce1 AtomicFile: Operate on the target of symlinks
Currently, if an AtomicFile is opened on a symlink, the AtomicFile would
end up overwriting the link. This change makes AtomicFiles operate on
the targets of the links and not the links themselves.

```
$ test/AtomicFileTest
1..22
ok 1 - AtomicFileTest: Shall not exists before finalize
ok 2 - AtomicFileTest: Shall exists after finalize
ok 3 - AtomicFileTest: Shall have the correct data
ok 4 - AtomicFileTest: Neither shall exist before finalize
ok 5 - AtomicFileTest: Both shall exists after finalize
ok 6 - AtomicFileTest: First file shall contain the correct data
ok 7 - AtomicFileTest: Second file shall contain the correct data
ok 8 - AtomicFileTest: Appending does not update original before finalize
ok 9 - AtomicFileTest: Finalizing updates the appended data
ok 10 - AtomicFileTest: Read from Atomicfile
ok 11 - AtomicFileTest: Read from Atomicfile should read unfinalized data
ok 12 - AtomicFileTest: Two AtomicFiles should access same temp file (part 1)
ok 13 - AtomicFileTest: Two AtomicFiles should access same temp file (part 2)
ok 14 - AtomicFileTest: Two AtomicFiles should access same temp file (part 3)
ok 15 - AtomicFileTest: File not removed before finalize
ok 16 - AtomicFileTest: File is removed after finalize
ok 17 - AtomicFileTest: writes to symlinks end up in target
ok 18 - AtomicFileTest: shall maintain symlink
ok 19 - AtomicFileTest: AtomicFile::write_raw throws on error # skip
ok 20 - AtomicFileTest: AtomicFile::finalize_all() throws on error # skip
ok 21 - AtomicFileTest: AtomicFile::reset clears failure state # skip
ok 22 - AtomicFileTest: AtomicFile::append throws on error # skip
ok 23 - AtomicFileTest: AtomicFile::append did not partially fill the file. # skip
ok 24 - AtomicFileTest: AtomicFile::append failures prevent finalization # skip
```

Fixes #546

Signed-off-by: Shaun Ruffell <sruffell@sruffell.net>
2023-06-23 17:35:00 +02:00
Shaun Ruffell
c67a4715f8 AtomicFileTest: Fix test output to be test/problems --details compliant
Before this change, when AtomicFileTest had errors, there was no match for details:
```
$ test/problems --details test/all.log
Traceback (most recent call last):
  File "test/problems", line 145, in <module>
    details_errors[filename] += " - " + detail.match(line).group(1) + "\n"
AttributeError: 'NoneType' object has no attribute 'group'
```

Now the details are pulled out properly:
```
$ test/problems --details test/all.log
Failed:
AtomicFile.t (2):
 - AtomicFile::write_raw throws on error
 - AtomicFile::finalize_all() throws on error

Unexpected successes:

Skipped:

Expected failures:
```

Why these tests are failing on this particular host is a matter for another time...

Signed-off-by: Shaun Ruffell <sruffell@sruffell.net>
2023-06-23 17:35:00 +02:00
dependabot[bot]
620ae1ad8e Bump docker/build-push-action from 4.1.0 to 4.1.1
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-20 14:14:20 +02:00
Thomas Lauf
82bcfafa21 Use term 'macOS' instead of 'OS-X'
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-06-17 15:17:29 +02:00
Thomas Lauf
26f2791d6b Set correct application name in test suite run script
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-06-17 14:19:02 +02:00
Thomas Lauf
c6aa8815a2 Make CMake/Make signal start of test suite run
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-06-17 14:19:02 +02:00
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
0c84dfd42e Remove reference to 'TIMEW_RCDIR'
Copy paste from Taskwarrior, not used in Timewarrior

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-06-17 14:19:02 +02:00
Thomas Lauf
ce68d43305 Update holidays/README
- Add links to holidata.net
- Reformat shell command examples

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-06-17 14:19:02 +02:00
Thomas Lauf
f346142560 Fix output redirection
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-06-17 14:19:02 +02:00
Thomas Lauf
77fb1851a7 Fix grammar and spelling
Use notations 'Clang'/'GCC', 'Asciidoctor', 'Make', 'Git', 'CMake' when referring to the tool, not the command

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-06-17 14:19:02 +02:00
Thomas Lauf
9299fd3e39 Apply Clang-Tidy
Use emplace_back instead of push_back
Use 'nullptr'
Use function 'empty ()' instead of 'size () == 0'
Mark single-argument constructors as 'explicit'
Call static function correctly
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
3008e458e9 Update project to C++17
- Bump CMake to minimum version 3.8
- Set C++ standard to 17
- Remove CMAKE_LEGACY_CYGWIN_WIN32 compatibility mode
- Remove C++11 stuff
- Update documentation

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-06-17 08:41:07 +02:00
dependabot[bot]
6c287870dd Bump docker/build-push-action from 4.0.0 to 4.1.0
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v4.0.0...v4.1.0)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-15 14:29:29 +02:00
dependabot[bot]
7b6510ddb8 Bump docker/login-action from 2.1.0 to 2.2.0
Bumps [docker/login-action](https://github.com/docker/login-action) from 2.1.0 to 2.2.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v2.1.0...v2.2.0)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-15 14:29:13 +02:00
Thomas Lauf
213798a29a Update AUTHORS, ChangLog
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-06-08 17:33:14 +02:00
Benedikt Fein
dd330aa0db Fix man page build for out-of-source builds
Fixes #461

Signed-off-by: Benedikt Fein <fein@fim.uni-passau.de>
2023-06-08 17:29:05 +02:00
Thomas Lauf
814956b920 Update README.md for shell completions
- Add repository and license for fish completion
- Beautify repository URLs
- Updated texts

Relates to #535

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-05-29 16:42:44 +02:00
Thomas Lauf
20a8a4a4cc Cleanup CMake files
- Replace tabs with spaces
- Use lowercase for CMake commands
- Unify alignment
- Remove superfluous empty line
- Add space after CMake command

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-05-26 09:53:03 +02:00
Thomas Lauf
81bc57309b Unify wording
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-05-26 09:30:11 +02:00
Thomas Lauf
660966dc9f Update ChangeLog, AUTHORS
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-05-26 09:28:07 +02:00
Thomas Lauf
aa73688ed4 Update README.md for shell completions
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-05-26 09:27:24 +02:00
Povl Filip Sonne-Frederiksen
fc6aab7d8b Adding fish shell completion
Signed-off-by: Povl Filip Sonne-Frederiksen <22501790+pfmephisto@users.noreply.github.com>
2023-05-26 09:15:53 +02:00
Thomas Lauf
6a5789140e Update ChangeLog, AUTHORS
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-05-26 09:12:23 +02:00
Ankur Sinha (Ankur Sinha Gmail)
834af86d5b fix(totals.py): correct handling of report end when it is available
Signed-off-by: Ankur Sinha (Ankur Sinha Gmail) <sanjay.ankur@gmail.com>
2023-05-26 08:51:13 +02:00
Ankur Sinha (Ankur Sinha Gmail)
99d18f42bb fix(totals.py): return all info when no arguments are provided
Signed-off-by: Ankur Sinha (Ankur Sinha Gmail) <sanjay.ankur@gmail.com>
2023-05-26 08:51:13 +02:00
Ankur Sinha (Ankur Sinha Gmail)
75d037d353 fix(totals.py): end report at current time if a task is being tracked
Fixes #540

Signed-off-by: Ankur Sinha (Ankur Sinha Gmail) <sanjay.ankur@gmail.com>
2023-05-26 08:51:13 +02:00
dependabot[bot]
00a2bf55da Bump sigstore/cosign-installer from 3.0.3 to 3.0.5
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) from 3.0.3 to 3.0.5.
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](https://github.com/sigstore/cosign-installer/compare/v3.0.3...v3.0.5)

---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-25 13:50:50 +02:00
dependabot[bot]
84fdf76f9a Bump sigstore/cosign-installer from 3.0.2 to 3.0.3
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) from 3.0.2 to 3.0.3.
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](https://github.com/sigstore/cosign-installer/compare/v3.0.2...v3.0.3)

---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-02 22:14:22 +02:00
Thomas Lauf
12c089aee1 Fix wording
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-04-18 23:18:43 +02:00
Thomas Lauf
38cf5aa6f4 Fix <br> tag
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-04-18 23:18:43 +02:00
Thomas Lauf
5b87c962e7 Polish up bash scripts
- Use '-n' instead of '! -z'
- Quote all the things...
- Enclose variable references in '{}'

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-04-18 23:18:43 +02:00
Thomas Lauf
14d364bff7 Drop unused assignments
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-04-17 08:17:29 +02:00
Thomas Lauf
81225722aa Remove stuff for Python < 3.7
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-04-17 08:17:29 +02:00