feat(commands): Add convenient names for read-data-subset n/m #328
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds convenience names for the
-read-data-subset=n/m
option which allow for more easy regular check runs which cover the whole repository data over a given period.E.g. it allows to daily run
check --read-data --read-data-subset=daily/month
which covers the repository once run at every day of any month. Before, this requirement needed scripting to setn
to the number of the current day within the month andm
to the total count of days in the current month.For
n
, it is now allowed to usehourly
daily
weekly
monthly
yearly
which is replaced by an index corresponding to the date/time the
check
command is called.For
m
, it is now allowed to useday
week
month
year
which is depending on
n
replaced by the total count of hours/days/weeks/months within the current entity. Moreovermonth_hours
,month_days
,year_hours
,year_days
which work independent fromn
.