Skip to content

feat: support wildcard/globstar patterns for file paths #3

@grrtbrtr

Description

@grrtbrtr

Description

Currently, the tool only accepts explicit file paths. I want to add support for wildcard patterns so that users don't have to list every single file manually, especially in larger projects.

This will allow for bulk-comparison of translation files or configuration sets across different directory structures. It also ensures compatibility with Windows environments where the shell does not automatically expand these patterns.

Desired patterns

The tool should be able to resolve the following types of patterns into a list of files:

  • Simple wildcards: @grrtbrtr/jsonkdiff *.json or @grrtbrtr/jsonkdiff file*.json
  • Directory wildcards: @grrtbrtr/jsonkdiff locales/*.json
  • Recursive globbing: @grrtbrtr/jsonkdiff **/locales/*.json or @grrtbrtr/jsonkdiff src/**/translations.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions