Skip to content

Feature/prefix filter - #19

Merged
flowernotfound merged 4 commits into
masterfrom
feature/prefix-filter
Aug 20, 2025
Merged

Feature/prefix filter#19
flowernotfound merged 4 commits into
masterfrom
feature/prefix-filter

Conversation

@flowernotfound

Copy link
Copy Markdown
Owner

Prefix filter

@flowernotfound
flowernotfound requested a review from Copilot August 16, 2025 16:21
@flowernotfound flowernotfound self-assigned this Aug 16, 2025
@flowernotfound flowernotfound added the enhancement New feature or request label Aug 16, 2025

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 implements a prefix filter feature for environment variables display. The feature allows users to filter environment variables by specifying a prefix as a command-line argument.

  • Adds prefix filtering functionality with case-insensitive matching
  • Updates CLI argument parsing to handle positional arguments
  • Extends environment variable types and filter system with comprehensive test coverage

Reviewed Changes

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

Show a summary per file
File Description
tests/utils/testHelpers.ts Adds ESLint disables for any types in mock console spy definitions
tests/unit/core/filter.test.ts Comprehensive test suite for prefix filter functionality
src/types/environment.ts Defines FilterConfig and FilterResult types for filtering system
src/core/filter.ts Core filter implementation with prefix matching and message generation
src/constants/messages.ts Adds filter-related CLI and error messages
src/cli/parser/types.ts Extends ParsedArgs interface to include arguments array
src/cli/parser/parser.ts Updates parser to capture positional arguments
src/cli/handlers/mainHandler.ts Integrates filter functionality into main command handler
src/cli.ts Passes parsed arguments to command execution
Comments suppressed due to low confidence (1)

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

@flowernotfound
flowernotfound merged commit 6c6d8ad into master Aug 20, 2025
4 checks passed
@flowernotfound
flowernotfound deleted the feature/prefix-filter branch August 20, 2025 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants