ui

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatRecurrenceRule

func FormatRecurrenceRule(rule eventkit.RecurrenceRule) string

FormatRecurrenceRule returns a human-readable recurrence description.

func LookupRowNumber

func LookupRowNumber(n int) string

LookupRowNumber returns the full event ID for a 1-based row number from the last listing cache. Returns "" if not found.

func PrintCalendars

func PrintCalendars(calendars []calendar.Calendar, format string)

PrintCalendars prints calendars in the specified format.

func PrintCreatedCalendar

func PrintCreatedCalendar(c *calendar.Calendar)

PrintCreatedCalendar prints summary info for a newly created calendar.

func PrintCreatedEvent

func PrintCreatedEvent(e *calendar.Event)

PrintCreatedEvent prints summary info for a newly created event.

func PrintEventDetail

func PrintEventDetail(event *calendar.Event, format string)

PrintEventDetail prints a single event with full details.

func PrintEvents

func PrintEvents(events []calendar.Event, format string)

PrintEvents prints events in the specified format and caches event IDs for row-number-based lookup by show/update/delete.

func PrintUpdatedCalendar

func PrintUpdatedCalendar(c *calendar.Calendar)

PrintUpdatedCalendar prints summary info for an updated calendar.

func PrintUpdatedEvent

func PrintUpdatedEvent(e *calendar.Event)

PrintUpdatedEvent prints summary info for an updated event.

func SaveLastList

func SaveLastList(events []calendar.Event)

SaveLastList writes event IDs to cache so row numbers can be used later.

func ShortID

func ShortID(id string) string

ShortID returns the first 13 chars of an event ID. This covers two UUID segments (e.g. "577B8983-DF44") which is enough to disambiguate events from the same source.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL