Skip to content

feat: period aliases, configurable week start, and new border styles - #33

Merged
jonas1307 merged 5 commits into
mainfrom
feat/period-aliases-and-summary-default
Sep 8, 2026
Merged

jonas1307 merged 5 commits into
mainfrom
feat/period-aliases-and-summary-default

Conversation

@jonas1307

@jonas1307 jonas1307 commented Sep 8, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • summary now defaults to the current month when no period option is given
  • Added --current-month and --current-week as explicit aliases for --month and --week across list, summary, and interactive
  • Refactored InteractiveOptions to implement IPeriodOptions and delegate to PeriodResolver, eliminating duplicated resolution logic
  • Added config --week-start sunday|monday to configure the first day of the week for --week/--last-week shortcuts (defaults to sunday)
  • Added ascii as a new border style option (config --border ascii), using +, -, | characters

Test plan

  • New alias tests in PeriodResolverTests: resolves identically to original, mutually exclusive with original, rejected alongside --from/--to
  • New week-start tests in ResolveDateTests: sunday-start and monday-start ranges, boundary days (Sunday, Saturday)
  • dotnet test — 108 tests passing

Mirrors --month and --week for a more explicit naming style.
Covers list, summary, and interactive commands.
Eliminates duplicated period resolution logic in InteractiveAction.
@jonas1307
jonas1307 force-pushed the feat/period-aliases-and-summary-default branch from 52cbd53 to e540a5c Compare September 8, 2026 17:52
@jonas1307 jonas1307 changed the title feat: period aliases and summary default to current month feat: period aliases, configurable week start, and new border styles Sep 8, 2026
@jonas1307
jonas1307 merged commit 1bb5a8d into main Sep 8, 2026
1 check passed
@jonas1307
jonas1307 deleted the feat/period-aliases-and-summary-default branch September 8, 2026 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant