boilerplate
boilerplate copied to clipboard
Question: obtain the relative path boilerplate working dir
Assuming that you run boilerplate at the root of a repo and want to start building a relative path to the root. How would you go about obtaining those paths?
Here is an example structure
. .boilerplate
| ` testfile.txt
+ subfolder
` + subsubfolder
` testfile.txt
Then then then I run
boilerplate --template-url ./.boilerplates/test --output-folder ./subfolder/subsubfolder
I would want testfile.txt
to contain ./subfolder/subsubfolder
I tried some hacks using shell, but interpolation does seem to occur in that way
{{ relPath outputFolder (shell echo "$PWD") }}
Maybe We could consider providing this out of the box in a variable.
{{ relPath outputFolder cmdPwd }}