Skip to content

Commit

Permalink
feat: グロブパターン対応の新機能を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
kiarina committed Feb 9, 2025
1 parent 1213700 commit 4053591
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8 deletions.
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion pydantic_config_builder/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
A tool to build YAML configurations by merging multiple files
"""

__version__ = "0.1.0"
__version__ = "0.2.0"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <kiarinadawa@gmail.com>"]
license = "MIT"
Expand Down

0 comments on commit 4053591

Please sign in to comment.