Skip to content

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

Merged
steipete merged 1 commit intoopenclaw:mainfrom
cdthompson:feat/calendar-subscribe
Mar 7, 2026
Merged

feat(calendar): add subscribe command for calendarList.insert API#327
steipete merged 1 commit intoopenclaw:mainfrom
cdthompson:feat/calendar-subscribe

Conversation

@cdthompson
Copy link
Copy Markdown
Contributor

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>
@steipete steipete merged commit d8650ad into openclaw:main Mar 7, 2026
1 check passed
@steipete
Copy link
Copy Markdown
Collaborator

steipete commented Mar 7, 2026

Follow-up landed on main after the merge race:

Thanks @cdthompson!

klodr pushed a commit to klodr/gogcli that referenced this pull request Apr 22, 2026
…enclaw#327)

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>
klodr pushed a commit to klodr/gogcli that referenced this pull request Apr 22, 2026
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.

2 participants