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

feat(minijnija-cli): add support for using env for options #598

Closed
wants to merge 3 commits into from

Conversation

onedr0p
Copy link
Contributor

@onedr0p onedr0p commented Oct 14, 2024

Hi 👋🏼

Simple change here to allow for using env to set options for minijinja-cli.

First time contributing Rust code, please be kind 😉

Related: #597

@onedr0p onedr0p marked this pull request as draft October 14, 2024 13:29
@onedr0p onedr0p marked this pull request as ready for review October 14, 2024 13:36
@onedr0p onedr0p changed the title feat(minijnija-cli): add support for defining args as env feat(minijnija-cli): add support for using env for options Oct 14, 2024
@onedr0p
Copy link
Contributor Author

onedr0p commented Oct 14, 2024

@mitsuhiko would you appreciate tests added for this too?

Edit: test added

@onedr0p onedr0p marked this pull request as draft October 14, 2024 14:06
Signed-off-by: Devin Buhl <devin@buhl.casa>

fix: keep super on func

Signed-off-by: Devin Buhl <devin@buhl.casa>

fix: forgot to update after testing

Signed-off-by: Devin Buhl <devin@buhl.casa>

fix: add back syntax descriptions

Signed-off-by: Devin Buhl <devin@buhl.casa>

fix: add a couple more env

Signed-off-by: Devin Buhl <devin@buhl.casa>

fix: enable env in cargo

Signed-off-by: Devin Buhl <devin@buhl.casa>
@onedr0p onedr0p marked this pull request as ready for review October 14, 2024 14:11
Signed-off-by: Devin Buhl <devin@buhl.casa>
@onedr0p
Copy link
Contributor Author

onedr0p commented Oct 14, 2024

Fixes #600

@mitsuhiko
Copy link
Owner

I will try to base some work on this pull request. Since some flags can be set multiple times I will need to spend some time figuring out how to best configure this with envvars. It might be that it would be a better choice to just allow env-vars for some and provide an explicit config file instead.

@mitsuhiko mitsuhiko mentioned this pull request Oct 22, 2024
@mitsuhiko mitsuhiko closed this Oct 22, 2024
@onedr0p onedr0p deleted the minijinja-cli-env branch October 22, 2024 21:30
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

Successfully merging this pull request may close these issues.

2 participants