Skip to content

Comments

feat(calendar): add subscribe command for calendarList.insert API#327

Open
cdthompson wants to merge 1 commit intosteipete:mainfrom
cdthompson:feat/calendar-subscribe
Open

feat(calendar): add subscribe command for calendarList.insert API#327
cdthompson wants to merge 1 commit intosteipete:mainfrom
cdthompson:feat/calendar-subscribe

Conversation

@cdthompson
Copy link

Summary

Adds a new calendar subscribe command that implements the Google Calendar API's calendarList.insert endpoint, allowing users to add an existing calendar to their calendar list.

  • New command: gog calendar subscribe <calendarId>
  • Aliases: sub, add-calendar
  • Optional flags:
    • --color-id — Set calendar color (1-24, see calendar colors)
    • --hidden — Hide from calendar list UI
    • --no-selected — Don't show events in calendar UI

Use case

Service accounts and users who have been granted access to a shared calendar need to explicitly add it to their calendar list before they can query events. This command enables that workflow.

Test plan

  • Unit tests for JSON and text output modes
  • Manual testing with service account: successfully subscribed to shared calendar and verified with calendar calendars
  • make build passes
  • make fmt passes
  • New tests pass (go test -run TestExecute_CalendarSubscribe)

🤖 Generated with Claude Code

Add new `calendar subscribe` command to add an existing calendar to the
user's calendar list. Supports optional flags for color, hidden state,
and selection state.

Aliases: sub, add-calendar

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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