walk a --path of files looking for *.yaml and *.yml files
on default hidden files (eg .hidden.yaml will be ignored (#TODO: allow searching for them also, or a custom exclude list?)
for each yaml file found it will stream each individual document to stdout
Notes:
This handles individual documents inside a file (--- seperated docs in a files) consistently
yaml is produced to stdout, all logging/comments/status as this script runs is sent to stderr (although error logging/panicing has not been reviewed yet)
comments and quoting are preserved, sometimes this can come out "weird"
yaml-concat --path ./source/files/
Issues
there are no test! (yet)
Potential for empty --- documents
about 10 minutes has been spent assessing the logging behaviour, it needs work
no effort has been put into the guarantees around executing this.
I need to safely stream files from a folder into stdout (and exclude certain ones)
python's vanilla pyyaml is a nightmare (doesn't care about quotes and goes on to even wreck types and then also their values..) (EG: foo: '00123' can become: foo: 123 ..danger Will Robinson!)