Skip to content

feat(calendar): add create-calendar command#455

Open
alexknowshtml wants to merge 1 commit intosteipete:mainfrom
alexknowshtml:feature/calendar-create
Open

feat(calendar): add create-calendar command#455
alexknowshtml wants to merge 1 commit intosteipete:mainfrom
alexknowshtml:feature/calendar-create

Conversation

@alexknowshtml
Copy link
Contributor

@alexknowshtml alexknowshtml commented Mar 16, 2026

Summary

  • Adds gog calendar create-calendar <name> command to create secondary Google Calendars
  • Supports --description, --timezone, --location flags
  • Outputs calendar ID and summary in both text and JSON modes
  • Includes dry-run support

Details

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 other calendar subcommands.

create-calendar takes a positional name argument and optional flags. Returns the calendar ID and summary in both text and JSON modes. Supports --dry-run to 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 errors
  • gog calendar create-calendar "Test Calendar" --timezone America/New_York creates the calendar
  • Calendar appears in gog calendar calendars list
  • JSON mode works with --json flag
  • Dry-run mode works with --dry-run
  • Delete test calendar via Google Calendar UI after testing

Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

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>
@alexknowshtml alexknowshtml force-pushed the feature/calendar-create branch from 7527b26 to 48310bf Compare March 17, 2026 00:09
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