Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add a copy parameter to GenerateFile #464
This is more of a proposal than a PR at the moment, because obviously there's not even a test for it yet.
I thought it would be useful to have a copy option in GenerateFile. My use case is that I'm making a profile that would want to copy more files into the lib/ directory, meaning the paths to the files would want to be templated as well as the content of them.
Rather than listing a bunch of lines, it seemed prudent to do something like this.
Hi! Sorry for the delay. I'm working through my backlog again.
I'm not entirely sure I understand the problem you want to solve. Is there a reason that GatherDir::Template won't work?
At any rate, I do not like that this PR leaves it possible for both content and copy to be provided, with content being, it seems, silently ignored when copy is set.
Let me know what you want to achieve and maybe I'll be enlightened, or I can help find a way that I think is more suitable for the capability to be added. Thanks!
My guess is he wants to (optionally) provide the file content in an existing file, rather than inlined in dist.ini? In that case,
Yes, I wanted to template the file and the filename - and
Supplying the content inline in
I recognise that this probably means I should try to fix our framework to have less boilerplate in its modules this stage it's easier to make a minting profile for it and ignore the problem!
I didn't consider adding this feature to