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
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:
@grrtbrtr/jsonkdiff *.jsonor@grrtbrtr/jsonkdiff file*.json@grrtbrtr/jsonkdiff locales/*.json@grrtbrtr/jsonkdiff **/locales/*.jsonor@grrtbrtr/jsonkdiff src/**/translations.json