Skip to content

feat: add --nodeclined support to remind command#9

Merged
snomiao merged 1 commit into
mainfrom
feat/nodeclined-remind-clean
Feb 17, 2026
Merged

feat: add --nodeclined support to remind command#9
snomiao merged 1 commit into
mainfrom
feat/nodeclined-remind-clean

Conversation

@snomiao
Copy link
Copy Markdown
Owner

@snomiao snomiao commented Feb 17, 2026

Ported from insanum/gcalcli#636 by @portothree. Re-implemented cleanly from main (original branch was based on 2022 code, 9 commits behind).

Summary

  • Adds output_parser as a parent to the remind subcommand so --nodeclined flag is available
  • Inside Remind(), applies the existing self.options['ignore_declined'] and self._DeclinedEvent(event) pattern — consistent with agenda/search/etc.

Why

Users on shared calendars with many declined events don't want reminders firing for events they've already declined.

Note

The original PR only added nodeclined as a dead parameter without using it. This implementation is complete and tested (63 tests pass).

🤖 Generated with Claude Code

…#636)

Wire output_parser (which includes --nodeclined/ignore_declined) into the
remind subparser and apply the existing _DeclinedEvent() filter pattern
inside Remind() to skip declined events.

The original PR only added a dead parameter; this implementation uses the
existing self.options['ignore_declined'] pattern consistent with all other
commands that respect --nodeclined.

Co-Authored-By: Gustavo Porto <gustavo@portosanti.com>
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings February 17, 2026 11:18
@snomiao snomiao merged commit 2230b7f into main Feb 17, 2026
4 checks passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds support for the --nodeclined flag to the remind command, allowing users to filter out declined events from reminders. This is particularly useful for users on shared calendars who don't want to receive reminders for events they've declined.

Changes:

  • Added output_parser as a parent to the remind subcommand definition in argparsers.py to make the --nodeclined flag available
  • Implemented the declined event filtering logic in the Remind() method using the established self.options['ignore_declined'] and self._DeclinedEvent(event) pattern

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
gcalcli/argparsers.py Added output_parser to the remind subcommand's parent parsers to expose the --nodeclined flag
gcalcli/gcal.py Added declined event filtering logic in the Remind() method, consistent with other event-processing methods

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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