Commit graph

3 commits

Author SHA1 Message Date
0ad02e0af4
feat(BREAKING): new parser for the TDV
All checks were successful
Tests / test (pull_request) Successful in 18s
REUSE Compliance Check / check (push) Successful in 5s
This commit adds a new parser for the internal time duration flag value
(TimeDurationValue). Previously this used the parser from the time
package from the standard library but this was limited to parsing units
of time up to hours.

The new parser allows users to specify duration in days, hours, minutes,
seconds and a combination of the above. It is quite flexible in the way
users format their string input.

Additonal changes:

- Added unit tests for the command-line parsing of the
  TimeDurationValue type.
- Updated the unit tests for the BoolPtrValue type.
- Updated documentation.

PR: #55
2024-08-20 03:32:54 +01:00
7fd93e8778
ci: add a workflow for tests
Some checks failed
Tests / test (pull_request) Successful in 15s
REUSE Compliance Check / check (push) Failing after 13s
- Added an action for running mage targets
- Added a workflow for running tests
- Add our first unit test

PR: #52
2024-08-17 19:15:12 +01:00
9bcb924ac0
ci: add workflow for REUSE Compliance Check
All checks were successful
REUSE Compliance Check / check (push) Successful in 5s
For now the compliance checks will be performed whenever a change is
made on the main branch.
2024-08-16 16:07:53 +01:00