-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
output file is scratched --strict and variable not found #93
Comments
I have this same issue, would prefer the file wasn't created rather than creating a blank file. The exit status is non-zero. I'm using it with
Other programs that use |
Yeah. Makes sense. I haven't touched this software in a while, I need to give it some love. |
then jinja2cli issues exception which is the expected behavior, but instead of leaving the output file as it is, it's already scratched to zero
will it be possible to only flush the output file if the jinja2cli succeeded.
this will be a bonus, replacing the content of file:
could the input file and the output file be the same file as sed -i option allows to replace within the same file
the behavior is that the file is scratched to zero and there is no exception triggered.
the input file could be read, processed then if everything is fine flushed back into the same file to be closed.
my aim is to replace into all my scripts the sed -i by jinja2cli
Thanks a lot already for this smart package
The text was updated successfully, but these errors were encountered: