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

Rewrite Config Parsing + CLI Arg Intake #9

Open
d3adzo opened this issue Jan 29, 2022 · 0 comments
Open

Rewrite Config Parsing + CLI Arg Intake #9

d3adzo opened this issue Jan 29, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@d3adzo
Copy link
Member

d3adzo commented Jan 29, 2022

From @mav8557
If need be we can use a struct - I have a repo somewhere doing this for an example. The idea then would be to read in the config file to a Config struct, then read in the arguments (so they overrule config file options) and then pass that parse configuration struct around where it's needed, as part of an application context. I can work on that later, but an example of what I mean is here: https://github.com/carolynvs/emote/blob/master/config/config.go#L23

@d3adzo d3adzo added the enhancement New feature or request label Jan 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant