You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe
As Ezra I want to have env var templating in the env section of a command like we currently do for dir so that I can simplify what I ask the user for and template more things into one env var.
Describe the solution you'd like
Given I have a cmd with an env section
And one of those env vars has a template string matching a variable in it (${VAR})
When I run Maru and set that variable
Then that env var is templated with the value from that variable
Describe alternatives you've considered
We could allow higher level templating of variables into other variables but this would be simpler from an implementation perspective.
## Description
This allows templating of env vars in actions.
## Related Issue
Fixes#111
## Type of change
- [ ] Bug fix (non-breaking change which fixes an issue)
- [X] New feature (non-breaking change which adds functionality)
- [ ] Other (security config, docs update, etc)
## Checklist before merging
- [X] Test, docs, adr added or updated as needed
- [X] [Contributor Guide
Steps](https://github.com/defenseunicorns/maru-runner/blob/main/CONTRIBUTING.md)
followed
Is your feature request related to a problem? Please describe
As Ezra I want to have env var templating in the
env
section of a command like we currently do fordir
so that I can simplify what I ask the user for and template more things into one env var.Describe the solution you'd like
cmd
with anenv
section${VAR}
)Describe alternatives you've considered
We could allow higher level templating of variables into other variables but this would be simpler from an implementation perspective.
Additional context
maru-runner/src/pkg/runner/actions.go
Line 164 in 924c2b9
The text was updated successfully, but these errors were encountered: