Skip to content

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

Open
ejc3 wants to merge 1 commit intosteipete:mainfrom
ejc3:add-send-updates-to-calendar-update
Open

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

Conversation

@ejc3
Copy link

@ejc3 ejc3 commented Feb 4, 2026

Summary

Adds the --send-updates flag to gog calendar update to allow sending email notifications to attendees when updating calendar events.

Changes

  • Added SendUpdates field to CalendarUpdateCmd struct
  • Modified the Run method to validate and pass the sendUpdates parameter to the API
  • Added 2 tests to verify the flag works correctly

Flag Values

The flag supports the same values as the create command:

  • all: Notifications sent to all guests (default when specified)
  • externalOnly: Notifications sent to non-Google Calendar guests only
  • none: No notifications sent

Example Usage

# Notify all attendees about the time change
gog calendar update primary abc123 --from 2025-01-15T14:00:00Z --to 2025-01-15T15:00:00Z --send-updates=all

# Update silently (no notifications)
gog calendar update primary abc123 --summary "New Title" --send-updates=none

Testing

  • All existing tests pass
  • Added TestCalendarUpdateCmd_SendUpdates - verifies --send-updates=all
  • Added TestCalendarUpdateCmd_SendUpdatesExternalOnly - verifies --send-updates=externalOnly

Related

Closes #190 (partial - this PR addresses the update command; issue #50 addressed the create command)

Adds the --send-updates flag to 'gog calendar update' to allow sending
email notifications to attendees when updating calendar events.

The flag supports the same values as the create command:
- all: Notifications sent to all guests (default)
- externalOnly: Notifications sent to non-Google Calendar guests only
- none: No notifications sent

This matches the Google Calendar API's sendUpdates parameter for the
events.patch endpoint.

Closes #601 (if that issue exists for this feature request)
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