Closed gabhijit closed 6 months ago
This PR adds support for using the scaffold parameters inside hooks. For example let's say you have a parameter like tutorial_name with a value foo.
hooks
tutorial_name
foo
You could use it as follows in hooks (in .scaffold.toml)
.scaffold.toml
[hooks] pre = [ "mkdir {{tutorial_name}}" ]
Which is often quite useful where you may want to use some shell commands based on the values given to the scaffold as options.
This PR adds support for using the scaffold parameters inside
hooks
. For example let's say you have a parameter liketutorial_name
with a valuefoo
.You could use it as follows in hooks (in
.scaffold.toml
)Which is often quite useful where you may want to use some shell commands based on the values given to the scaffold as options.