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 support for getting a FlagSet from envconfig #167

Open
ronniel1 opened this issue Feb 18, 2020 · 1 comment
Open

Add support for getting a FlagSet from envconfig #167

ronniel1 opened this issue Feb 18, 2020 · 1 comment

Comments

@ronniel1
Copy link

Hi,

I would like to add the ability to create a FlagSet from envconfig.
This would allow overriding the config values set in environment, using command line argument.

Using the FlagSet option would allow using envconfig in apps that already use flag or pflag for command line arguments.

I see two ways of doing this:
1 - add a GetFlagSet() method to envconfig which will use the internal gatherInfo()
2 - Expose GatherInfo() and VarInfo so that GetFlagInfo() will be implemented outside of the envconfig pkg.

What do you think?

@ronniel1
Copy link
Author

ronniel1 commented Oct 1, 2020

Is this something that will be considered?
Should I work on a PR?

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

1 participant