Skip to content
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

Add ability to pass runtime arguments #35

Open
jellers232 opened this issue Oct 7, 2019 · 0 comments
Open

Add ability to pass runtime arguments #35

jellers232 opened this issue Oct 7, 2019 · 0 comments
Assignees

Comments

@jellers232
Copy link

Having the ability to pass runtime arguments would make hogan more flexible and reduce the number of templates needed if you have lots of modules that fall under an environment. A comma-delimited list or some other sort of way to pass in values.

script example

apps = ( admin api portal )
for a in "${apps[@]}"
do
  hogan transform -f 'example.template.json' -c hogan-configs/ -t ./product/ -args application="${a}"
done

hogan template file

variables {
  "application_name": "{{product}}-{{args.application}}"
}
@jjcomer jjcomer self-assigned this Nov 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants