Open svmk opened 6 years ago
v0.1.1 also exhibits this behavior. I agree that this should notify the user, but there may be use cases where not finding a file is the behavior the user would want. I suggest that it should warn the user that a file (or files) weren't found for inclusion, instead of erroring.
The other issue I see is that it's putting {}
in its place (indicating an empty map). Should this be an empty string (assuming it won't error and only warn)?
Thoughts?
Hi @svmk @justinnichols there is a news about this in version 0.1.5 we can use '--strict' option in commad-line
The strict mode stop if 'Problem' occur during runtime (e.g. Syntax error or missing files) To respect your chain use this:
$ yamlinc --strict main.yml && cat main.inc.yml
On the next day I work to found a solution for {}
Version: v0.0.65 Steps to reproduce:
yamlinc main.yml && cat main.inc.yml
Output:some_key: some_value some_data: {}