Insert bash output inside template #1791
Unanswered
quentinblampey
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to insert the output of a command line inside a file generated by cookiecutter.
More precisely, I want to get the output of
poetry config virtualenvs.path
and insert it into the generated README file.Is it possible to do it?
I already tried to update pre-hooks to alter the cookiecutter object with the result of this output, but it seems it's only possible to modify some values, not add new key/value pairs (the idea was to add add the desired string to the cookiecutter object so that I can simply use the normal template formatting).
Beta Was this translation helpful? Give feedback.
All reactions