diff --git a/CHANGELOG.md b/CHANGELOG.md index 55658a5..8a79ed6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,16 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [0.1.0] - 2024-03-12 +## [0.2.0] - 2024-02-09 + +### Added +- Support for glob patterns in source file paths + - `*.yaml` matches all YAML files in current directory + - `**/*.yaml` matches all YAML files recursively in subdirectories + - Automatic deduplication of matched files + - Warning messages for patterns with no matches + +## [0.1.0] - 2024-02-09 ### Added - Initial release diff --git a/README.md b/README.md index e9e8b9a..fd5c1e3 100644 --- a/README.md +++ b/README.md @@ -25,13 +25,14 @@ Create a configuration file named `pydantic_config_builder.yml` in your project ```yaml # Keys are output file paths -# Values are lists of source files to merge +# Values are lists of source files to merge (glob patterns supported) default.yaml: - - base.yaml - - path/to/base.yaml + - base/*.yaml # All YAML files in base directory + - path/to/base.yaml # Specific file ~/path/to/config.yaml: - - default.yaml - - /path/to/overlay.yaml + - default.yaml # Use output of another configuration + - configs/**/*.yaml # All YAML files in configs and subdirectories + - /path/to/overlay-*.yaml # All overlay files in specific directory ``` Then run the builder: diff --git a/pydantic_config_builder/__init__.py b/pydantic_config_builder/__init__.py index 3ffc498..83b8385 100644 --- a/pydantic_config_builder/__init__.py +++ b/pydantic_config_builder/__init__.py @@ -3,4 +3,4 @@ A tool to build YAML configurations by merging multiple files """ -__version__ = "0.1.0" +__version__ = "0.2.0" diff --git a/pyproject.toml b/pyproject.toml index 9450fb2..f3cba1b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pydantic-config-builder" -version = "0.1.0" +version = "0.2.0" description = "A tool to build YAML configurations by merging multiple files" authors = ["kiarina "] license = "MIT"