-
-
Notifications
You must be signed in to change notification settings - Fork 516
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
feat: Allow env vars expansion in --args
section for all hooks
#363
Conversation
`*` - All hooks, except deprecated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great quirk dude!
Please see my suggestions for shell code changes below. I haven't tested them though, hence I kindly ask you to do this in your test environment. Thanks!
Co-authored-by: George L. Yermulnik <yz@yz.kiev.ua>
Co-authored-by: George L. Yermulnik <yz@yz.kiev.ua>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from cut -d ...
workaround, everything else looks just marvelous and great!
Let's merge if %%\}*
isn't doing what's intended.
@antonbabenko please check the idea. |
Co-authored-by: George L. Yermulnik <yz@yz.kiev.ua>
@andrew-glenn ping |
--args
section for all hooks*--args
section for all hooks
# [1.69.0](v1.68.1...v1.69.0) (2022-04-26) ### Features * Allow env vars expansion in `--args` section for all hooks ([#363](#363)) ([caa01c3](caa01c3))
This PR is included in version 1.69.0 🎉 |
<3 |
*
- All hooks, except deprecated.Put an
x
into the box if that apply:Description of your changes
Implement a use case from #347, but without affecting UX.
Use case:
Close #347
How can we test changes
Export env vars, eg
export CONFIG_NAME=.tflint; export CONFIG_EXT=hcl
Add env vars to your .pre-commit-config.yaml`
pre-commit run
Output: