Skip to content

refactor: filter method - #21

Merged
flowernotfound merged 2 commits into
developfrom
feature/filter-refinement
Aug 30, 2025
Merged

refactor: filter method#21
flowernotfound merged 2 commits into
developfrom
feature/filter-refinement

Conversation

@flowernotfound

Copy link
Copy Markdown
Owner

Merged filter functionality.
add -f option.

@flowernotfound flowernotfound self-assigned this Aug 30, 2025
Copilot AI review requested due to automatic review settings August 30, 2025 16:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the filter functionality by consolidating filter methods and adding a short -f option for filtering. The main purpose is to improve code maintainability and provide a more convenient CLI interface.

  • Introduced a unified createFilter function that handles both prefix and partial matching
  • Added -f as a short alias for the --filter option
  • Added comprehensive test coverage for the new -f option functionality

Reviewed Changes

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

File Description
src/core/filter.ts Refactored to use a unified createFilter function and deprecated old methods
src/constants/cli.ts Added -f alias mapping for the filter option
src/cli/config.ts Updated help text to show the new -f short option
tests/unit/cli/parser.test.ts Added test cases for -f option parsing and validation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@flowernotfound
flowernotfound merged commit 84ddc01 into develop Aug 30, 2025
4 checks passed
@flowernotfound
flowernotfound deleted the feature/filter-refinement branch August 30, 2025 20:06
flowernotfound added a commit that referenced this pull request Aug 31, 2025
* refactor: filter method (#21)

* refactor: filter method

* docs: update README

* build (#22)
flowernotfound added a commit that referenced this pull request Aug 31, 2025
* refactor: filter method (#21)

* refactor: filter method

* docs: update README

* build (#22)

* readme (#24)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants