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 an env_with_source function to Arg #5569

Closed
wants to merge 1 commit into from

Conversation

cbeck88
Copy link

@cbeck88 cbeck88 commented Jul 7, 2024

This is intended to resolve #4607, and also my earlier request #5104 which was closed in favor of #4607

This is obviously not as powerful as the plugin system envisioned here #4607 (comment)

but it is simple and might be a useful stopgap until such time as the plugin system exists.

It doesn’t go as far as 5104 wanted but it’s still pretty useful imo.

Fixes #4607

feedback on the approach would be appreciated

@cbeck88 cbeck88 force-pushed the env-with-source branch 8 times, most recently from a527836 to 315c2ff Compare July 7, 2024 19:19
This is intended to resolve clap-rs#4607, and also my earlier request
clap-rs#5104 which was closed in
favor of clap-rs#4607

This is obviously not as powerful as the plugin system envisioned here
clap-rs#4607 (comment)

but it is simple and might be a useful stopgap until such time as the
plugin system exists.

Fixes clap-rs#4607
@epage
Copy link
Member

epage commented Jul 8, 2024

#4607 is marked as "S-waiting-on-design", meaning there isn't an agreed to design for it to move forward. As this is still in the design discussion phase, a PR feels premature. As such, I'm going to close this so we keep the focus on the design discussion there, rather than forking that conversation here or getting distracted with implementation discussion.

@epage epage closed this Jul 8, 2024
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.

Add method to parse environment variables from custom source
2 participants