Skip to content

feat: add --recurrence flag to create and update commands - #2

Open
lrhodin wants to merge 1 commit into
badlogic:mainfrom
lrhodin:feat/recurrence
Open

feat: add --recurrence flag to create and update commands#2
lrhodin wants to merge 1 commit into
badlogic:mainfrom
lrhodin:feat/recurrence

Conversation

@lrhodin

@lrhodin lrhodin commented Mar 4, 2026

Copy link
Copy Markdown

Adds a --recurrence flag to both create and update commands that accepts an RRULE string and passes it through to the Google Calendar API.

Usage:

gccli you@gmail.com create primary --summary "Birthday" --start 2024-06-01 --end 2024-06-02 --all-day --recurrence "RRULE:FREQ=YEARLY"

Changes:

  • src/cli.ts: Added --recurrence to parseArgs for create/update, updated help text and examples
  • src/calendar-service.ts: Added recurrence to event params, wired to API as recurrence: [rule]

Tested: Created a yearly recurring event, verified it appeared in both 2026 and 2027, then deleted it.

Wire RRULE strings through to the Google Calendar API's recurrence
field. Accepts standard RRULE format (e.g. RRULE:FREQ=YEARLY,
RRULE:FREQ=WEEKLY;BYDAY=TU,TH).

Works on both create and update commands.
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