-
-
Notifications
You must be signed in to change notification settings - Fork 185
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
Feature Request: Gomplate as a Template Manager #589
Comments
Hey @osterman! Thanks for this, it's really interesting 🤔 First off, I'm going to assume that full Barring the interactivity, this sounds to me like a smarter kind of I'm not sure # grab the project from the filesystem
$ gomplate --input-project ./sample-project
...
# grab the project from GitHub
$ gomplate --input-project github.com/hairyhenderson/sample-project
...
# or some other git repo
$ gomplate --input-project [email protected]:hairyhenderson/sample-project.git
... These would all use the defaults provided in the project, probably using that file as the $ gomplate --context .=./my_overrides.yaml --input-project github.com/hairyhenderson/sample-project Am I missing anything? |
@hairyhenderson yes, I think what you describe is pretty accurate.
True, but I think it does look fancy and demos well =)
Agree.
Yes, some sane defaults, like You suggest: (I agree)
Now, the only modifications I would make are....
For example,
Now, in a project, we can just run
I think this is nice, but could maybe come later? |
(eep, I thought I responded days ago - somehow this didn't get posted!) @osterman ok, yeah, that all sounds awesome. I've been thinking about a gomplate config file recently, and it'd fit nicely into this. I'm going to try to break this down into bite-sized chunks, which should mostly be able to be implemented atomically. I'll create separate issues for these as I go to make them easier to work on:
|
@hairyhenderson 👋 also very interested in this. was going to recommend the above (config file, reading projects from git, etc). I was wondering if this work had begun or what was the status of it. Thanks. |
@rossedman hi! I've taken a bit of a break from gomplate for the past month or so - not for any particular reason, just lots of "life" things taking precedence 😉. All that to say, no I haven't begun working on this, though I was just thinking about it the other day. I won't promise any kind of timeline, but I will promise that I'll get started on this sometime soon. I ran into a few situations over the past couple weeks where at least the git support would've been useful. |
Just a bit of an update - support for git datasources, which is tangentially related to this feature, is pretty close to dropping here: #661 (comments welcome, especially on the docs!). It was a bit more of a pain to implement than I expected 😂 |
This would tie in very nicely to a gomplate github action also... Have a git project managing the templates, and a github action where gomplate uses that project as the template source, templates the files in the current repo, and opens a pull request with any changes. |
This issue is stale because it has been open for 60 days with no activity. Remove |
Would still love to see this! =) |
This issue is stale because it has been open for 60 days with no If it's still relevant, one of the following will remove the stale
|
I've assigned this to the |
@hairyhenderson I understand this may be a long shot feature request! Anyways, just wanted to get it on your radar, in case it sounds cool.
what
why
boilr
project appears abandonedour use-cases
Don't get me wrong,
gomplate
can do this today with some scripting. We do it already to some degree at cloudposse. Just I would love ifgomplate
became a convention for how to structure templatized projects, rather than everyone creating their own convention. E.g. today, we use a Makefile with a bunch of custom scripting.README.md
from aREADME.yaml
LICENSE
file from the projects configuration.github/workflows
(or travis/circle/codefresh pipelines) for a project with template parametersprior art
The text was updated successfully, but these errors were encountered: