[FEATURE REQUEST] Add support for glob patterns
Description
Add support for glob patterns to allow more flexible and precise file matching
Examples:
validator "**/*.json" # validate all json files
validator "config/**/*_prod.yaml" # validate only YAML files with '_prod' in their name within the config directory
@olunusib Great suggestion! Just to make sure I'm understanding your first example (validator "**/*.json" # validate all json files) how does that differ from the functionality today?
I would suggest using doublestar
True, the first example is already doable with an extra flag
@olunusib @kehoecj what flag are you referring to for the first example?
@anya004 Looking at this more there's actually not a great way to target only one file type so I think the glob pattern makes sense. In order to target only a single config type you'd have to exclude all available types like this validator --exclude-type=xml,yaml,.... Looking at it further we also don't provide a list of types that are visible outside of the code. I'll create a separate issue for that.
@kehoecj I can look into it. Would integrate the doublestar library mentioned above.
@timwehrle I started looking into it and will have a PR ready today!
@anya004 If you need additional help, reach out :)