-
Notifications
You must be signed in to change notification settings - Fork 187
Viper config implementation #276
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
Conversation
A bit of uneeded DRY. Both commands share the same set of flags so consolidate into the root init. If individual flags are ever needed, we can set them in the init of each cmd. Signed-off-by: Luke Hinds <lhinds@redhat.com>
Note; this is based upon #272, so that will need landing first. Goddam DCO bot, I am positive I signed everything. |
6eb8a9b seems to be missing signature |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (besides @mihaimaruseac 's comments)
This change allows three types of input (in order of load priority), in accordance with the 12 factor app design. * CLI flags * Environment Variables * Configuration file Environment variables are declared using the `GUAC` prefix, e.g.. `export GUAC_GDBUSER=neo4j` It requires the former creds value be split over two flags `--gdbuser neo4j --gdbpass password` Signed-off-by: Luke Hinds <lhinds@redhat.com>
730514a
to
34c2859
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
give me a minute, i just started a git dumpster fire. |
Signed-off-by: Brandon Lum <lumjjb@gmail.com> Signed-off-by: Brandon Lum <lumjjb@gmail.com>
A bit of uneeded DRY. Both commands share the same set of flags so consolidate into the root init. If individual flags are ever needed, we can set them in the init of each cmd. Signed-off-by: Luke Hinds <lhinds@redhat.com> Signed-off-by: Luke Hinds <lhinds@redhat.com>
bc63bdb
to
6db793b
Compare
Signed-off-by: Luke Hinds <lhinds@redhat.com>
should be good now |
Signed-off-by: Luke Hinds <lhinds@redhat.com>
Signed-off-by: Luke Hinds <lhinds@redhat.com>
Signed-off-by: Luke Hinds <lhinds@redhat.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Implement viper for configuration mgmt
This change allows three types of input (in order of load priority), in accordance with the 12 factor app design.
Environment variables are declared using the
GUAC
prefix, e.g..export GUAC_GDBUSER=neo4j
It requires the former creds value be split over two flags:
--gdbuser neo4j --gdbpass password
Closes: #273
Signed-off-by: Luke Hinds lhinds@redhat.com