https://github.com/komish/yamlsplit
Split a single YAML file with multiple manifests into separate files.
https://github.com/komish/yamlsplit
yaml
Last synced: 5 months ago
JSON representation
Split a single YAML file with multiple manifests into separate files.
- Host: GitHub
- URL: https://github.com/komish/yamlsplit
- Owner: komish
- License: mit
- Created: 2021-03-05T20:45:29.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-05T21:47:50.000Z (over 5 years ago)
- Last Synced: 2024-06-20T12:42:28.302Z (about 2 years ago)
- Topics: yaml
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# YAMLSplit
A quick hack to split monolithic YAML documents into microdocuments (ha!). Your
microdocuments are written with enumerated file names.
## Usage
```shell
cat my-single-file-with-many-documents.yaml | yamlsplit
Writing 0.yaml
Writing 1.yaml
Writing 2.yaml
Writing 3.yaml
Writing 4.yaml
```
## Release
```
YAMLSPLIT_COMMIT_HASH=$(git rev-parse HEAD) YAMLSPLIT_VERSION=x.y.z make releases
```