feat(calendar): add calendar aliases#104
Open
zacharytamas wants to merge 7 commits intosteipete:mainfrom
Open
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.
Contributor
|
Great addition. Thanks @zacharytamas |
Collaborator
|
Hi Zachary - Great idea. Two things:
gog docs family-history sed ... Thoughts? |
Collaborator
|
@zacharytamas still out there? Would like to get the CI checkes cleared and wonder if you have thoughts on global sogcli alias support. |
Contributor
|
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 |
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
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