Skip to content

feat: add --default-only option to show-lists - #32

Merged
udondan merged 2 commits into
mainfrom
worktree-feat-show-lists-default-only
Sep 13, 2026
Merged

udondan merged 2 commits into
mainfrom
worktree-feat-show-lists-default-only

Conversation

@udondan

@udondan udondan commented Sep 13, 2026

Copy link
Copy Markdown
Owner

Summary

Adds reminders show-lists --default-only (short -d), which prints only the list Reminders.app uses for new reminders.

Cherry-picked from upstream keith/reminders-cli#88 by Aaron Fields (7a15c00edc), plus a follow-up commit of ours.

Important

Merge this PR with a merge commit, not squash. Squashing would demote the original author of the cherry-picked commit to a co-author trailer.

Commits

  1. feat: add --default-only option to show-lists (author: Aaron Fields). The upstream commit, applied cleanly; only the commit message was amended to a conventional title.
  2. feat: make show-lists --default-only honor --format and print the list id (ours). The upstream version printed only the title, ignored --format, and force-unwrapped the default calendar. It now goes through the regular showLists path, so plain output is Title (identifier) and --format json works. If no default list is configured it prints a message and exits 1 instead of crashing. README example added.

Verification

  • swift build -Xswiftc -warnings-as-errors and swift test -Xswiftc -warnings-as-errors pass.
  • Read-only manual check of show-lists --default-only in plain and JSON format on a real account.

bitfieldz and others added 2 commits September 13, 2026 22:05
…t id

The cherry-picked `--default-only` printed only the list title and
ignored `--format`, and force-unwrapped the default calendar.

Route it through the regular `showLists` output instead, so plain output
is `Title (identifier)` like every other list and `--format json` works.
Exit with a message instead of crashing when no default list is
configured.
@udondan
udondan merged commit fc21538 into main Sep 13, 2026
2 checks passed
@udondan
udondan deleted the worktree-feat-show-lists-default-only branch September 13, 2026 20:08
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.

2 participants