Documentation
¶
Overview ¶
Package calendar provides calendar-related CLI commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultCalendarID ¶
func GetDefaultCalendarID( ctx context.Context, client ports.NylasClient, grantID string, calendarID string, writable bool, ) (string, error)
GetDefaultCalendarID retrieves the default calendar ID for a given grant. If calendarID is already provided, returns it unchanged. Otherwise, fetches calendars and returns:
- The primary writable calendar (for writable=true)
- The primary calendar (for writable=false)
- The first writable calendar (fallback for writable=true)
- The first calendar (fallback for writable=false)
Returns an error if no suitable calendar is found.
func NewCalendarCmd ¶
NewCalendarCmd creates the calendar command group.
Types ¶
Source Files
¶
- ai.go
- ai_context.go
- ai_reschedule.go
- ai_reschedule_helpers.go
- ai_schedule.go
- analyze.go
- availability.go
- calendar.go
- calendar_helpers.go
- conflicts.go
- crud.go
- dst_helpers.go
- events.go
- events_crud.go
- events_list.go
- events_rsvp.go
- events_show.go
- find_time.go
- focus_time.go
- list.go
- recurring.go
- schedule.go
- testing_helpers.go
- time_parsing_helpers.go
- timezone_helpers.go
- virtual.go
- working_hours_helpers.go
Click to show internal directories.
Click to hide internal directories.