yaml-include-0.4.0 is not a library.
Visit the last successful build:
yaml-include-0.8.1
Yaml-include
A yaml processor that can recursivly include files through !include <path> tag.
well, it kinda works with json as well see data/simple/other.json
Install
cargo install yaml-include
Usage
Help
yaml-include --help
Output yaml with recursive "!included" data
Usage: yaml-include <FILE_PATH>
Arguments:
<FILE_PATH> main yaml file to process
Options:
-h, --help Print help
-V, --version Print version
Run
Ex.:
yaml-include data/sample/main.yml > main_inlined.yml
Features
- include and parse recursivly
yaml(andjson) files - include
markdownandtxttext files - include other types as
base64encoded binary data.
Basically, turns this:
main.yml:
data:
- file_a.yml
- file_b.yml
file_a.yml:
something:
- this
- that
file_b.yml:
other:
- text: file_c.txt
- markdown: file_d.md
file_c.txt:
This is some "long" multiline
text file i don't want to edit
inline in a long yaml file
file_d.md:
- -
Into that:
data:
- something:
- this
- that
- other:
- text: |-
This is some long multiline
text i don't want to edit
inline in a long yaml file
- markdown: |
# This is some markdown data
## I don't want to edit
- inline
- in a long yaml file
see data/sample