You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(calendar): add --event-types filter to calendar events
Add an opt-in --event-types flag to `calendar events`, passed through to
the Calendar API events.list eventTypes parameter. It accepts the six API
event types plus friendly aliases (focus-time, ooo, working-location/wl,
from-gmail, ...), repeatable or comma-separated, canonicalized and
deduplicated, and is honored across single-calendar, --cal/--calendars,
and --all paths.
Without a filter, events.list returns every event type, so birthday,
workingLocation, and fromGmail entries are interleaved with real meetings
in a "what's on my calendar" view. When the flag is omitted no eventTypes
param is sent, so the default (all types) is unchanged; a flag that is
present but resolves to no values is a usage error.
Event-type aliases now live in a single eventTypeAliases map shared by the
create/update path (restricted to the user-creatable types) and the
events.list filter (which accepts all six, including the read-only
birthday and fromGmail). Tests cover both normalizers, the resolver, the
shared-map invariant, and that the eventTypes query param reaches the API
when set (single-calendar and across the --cal/--all paths) and is absent
when unset. Command docs regenerated.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
-`--event-types` filters to one or more event types (repeatable or comma-separated): `default`, `birthday`, `focus-time`, `from-gmail`, `out-of-office`, `working-location`. Unset returns all types (the API default).
277
278
-`gog calendar event|get <calendarId> <eventId>`
278
279
-`GOG_CALENDAR_WEEKDAY=1` defaults `--weekday` for `gog calendar events`
0 commit comments