feat(calendar): add create-calendar command#455
Open
alexknowshtml wants to merge 1 commit intosteipete:mainfrom
Open
feat(calendar): add create-calendar command#455alexknowshtml wants to merge 1 commit intosteipete:mainfrom
alexknowshtml wants to merge 1 commit intosteipete:mainfrom
Conversation
Create new secondary Google Calendars via the API. Usage: gog calendar create-calendar "My Calendar" --timezone America/New_York Supports --description, --timezone, --location flags. Outputs calendar ID and summary in both text and JSON modes. Includes dry-run support. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
7527b26 to
48310bf
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
gog calendar create-calendar <name>command to create secondary Google Calendars--description,--timezone,--locationflagsDetails
Currently, creating a secondary Google Calendar requires raw API calls outside the CLI. This command wraps
Calendars.Insert()and follows the same Kong patterns as othercalendarsubcommands.create-calendartakes a positional name argument and optional flags. Returns the calendar ID and summary in both text and JSON modes. Supports--dry-runto preview without creating.Useful for programmatic calendar setup — e.g., creating dedicated calendars for availability blocking or project-specific scheduling.
Test plan
go build ./...compiles without errorsgog calendar create-calendar "Test Calendar" --timezone America/New_Yorkcreates the calendargog calendar calendarslist--jsonflag--dry-runCo-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com