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
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: