feat(calendar): add calendar aliases#104
Conversation
Add support for storing calendar aliases in config.json, following the same pattern as account aliases. Includes CRUD functions and tests.
Add gog calendar alias {list,set,unset} commands for managing calendar
aliases. These allow mapping friendly names like 'family' to full
calendar IDs like '3656f8abc123@group.calendar.google.com'.
Add resolveCalendarID helper function and register CalendarAliasCmd in the calendar command tree.
Update CalendarCreateCmd, CalendarUpdateCmd, CalendarDeleteCmd, CalendarProposeTimeCmd, and CalendarRespondCmd to resolve calendar aliases before using the calendar ID.
Update focus-time, out-of-office, working-location, and time commands to resolve calendar aliases.
Update search, freebusy, and conflicts commands to resolve calendar aliases. Multi-calendar commands now resolve each calendar ID in the comma-separated list.
|
Great addition. Thanks @zacharytamas |
|
Hi Zachary - Great idea. Two things:
gog docs family-history sed ... Thoughts? |
|
@zacharytamas still out there? Would like to get the CI checkes cleared and wonder if you have thoughts on global sogcli alias support. |
|
Opened a continuation PR because this branch cannot be updated from my account and CI needed cleanup: #393 This keeps the same feature scope and passes current CI locally (make ci). Tagging for visibility: @zacharytamas @visionik |
|
Closing as superseded by #393, which continues this work and is updated for current CI/lint expectations. |
* feat(config): add CalendarAliases field to config
Add support for storing calendar aliases in config.json, following the
same pattern as account aliases. Includes CRUD functions and tests.
* feat(calendar): add calendar alias CLI commands
Add gog calendar alias {list,set,unset} commands for managing calendar
aliases. These allow mapping friendly names like 'family' to full
calendar IDs like '3656f8abc123@group.calendar.google.com'.
* feat(calendar): add alias resolution helper
Add resolveCalendarID helper function and register CalendarAliasCmd
in the calendar command tree.
* feat(calendar): resolve aliases in create/update/delete commands
Update CalendarCreateCmd, CalendarUpdateCmd, CalendarDeleteCmd,
CalendarProposeTimeCmd, and CalendarRespondCmd to resolve calendar
aliases before using the calendar ID.
* feat(calendar): resolve aliases in specialized event commands
Update focus-time, out-of-office, working-location, and time commands
to resolve calendar aliases.
* feat(calendar): resolve aliases in search and multi-calendar commands
Update search, freebusy, and conflicts commands to resolve calendar
aliases. Multi-calendar commands now resolve each calendar ID in the
comma-separated list.
* fix(calendar): clear CI lint issues in alias PR
* feat(calendar): add calendar aliases (#393)
* fix(calendar): satisfy alias lint on landed branch (#393)
---------
Co-authored-by: Zachary <zachary@tamas.sh>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
…law#393) * feat(config): add CalendarAliases field to config Add support for storing calendar aliases in config.json, following the same pattern as account aliases. Includes CRUD functions and tests. * feat(calendar): add calendar alias CLI commands Add gog calendar alias {list,set,unset} commands for managing calendar aliases. These allow mapping friendly names like 'family' to full calendar IDs like '3656f8abc123@group.calendar.google.com'. * feat(calendar): add alias resolution helper Add resolveCalendarID helper function and register CalendarAliasCmd in the calendar command tree. * feat(calendar): resolve aliases in create/update/delete commands Update CalendarCreateCmd, CalendarUpdateCmd, CalendarDeleteCmd, CalendarProposeTimeCmd, and CalendarRespondCmd to resolve calendar aliases before using the calendar ID. * feat(calendar): resolve aliases in specialized event commands Update focus-time, out-of-office, working-location, and time commands to resolve calendar aliases. * feat(calendar): resolve aliases in search and multi-calendar commands Update search, freebusy, and conflicts commands to resolve calendar aliases. Multi-calendar commands now resolve each calendar ID in the comma-separated list. * fix(calendar): clear CI lint issues in alias PR * feat(calendar): add calendar aliases (openclaw#393) * fix(calendar): satisfy alias lint on landed branch (openclaw#393) --------- Co-authored-by: Zachary <zachary@tamas.sh> Co-authored-by: Peter Steinberger <steipete@gmail.com>
Summary
familyto full calendar IDs like3656f8abc123@group.calendar.google.comgog calendar alias {list,set,unset}Usage
Config
Aliases are stored in
~/.config/gog/config.json:{ "calendar_aliases": { "family": "3656f8abc123@group.calendar.google.com" } }Test plan