Skip to content

feat(calendar): add --send-updates flag to update command#176

Open
ejc3 wants to merge 1 commit intosteipete:mainfrom
ejc3:feat/send-updates-on-update
Open

feat(calendar): add --send-updates flag to update command#176
ejc3 wants to merge 1 commit intosteipete:mainfrom
ejc3:feat/send-updates-on-update

Conversation

@ejc3
Copy link

@ejc3 ejc3 commented Feb 4, 2026

Summary

The update command was missing the sendUpdates parameter that exists in the Google Calendar API. This meant attendees wouldn't receive notification emails when events were rescheduled.

Changes

  • Adds SendUpdates field to CalendarUpdateCmd struct
  • Validates the parameter using existing validateSendUpdates()
  • Passes sendUpdates to Events.Patch() API call

Usage

gog calendar update primary <eventId> --from "2026-02-03T15:30:00" --send-updates all

Google Calendar API Reference

The Events: update endpoint supports the sendUpdates query parameter with values: all, externalOnly, none.

Fixes #175

The update command was missing the sendUpdates parameter that exists in
the Google Calendar API. This meant attendees wouldn't receive notification
emails when events were rescheduled.

This change:
- Adds SendUpdates field to CalendarUpdateCmd struct
- Validates the parameter using existing validateSendUpdates()
- Passes sendUpdates to Events.Patch() API call

Fixes steipete#175
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.

Add --send-updates flag to 'gog calendar update' command

1 participant