-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Migrate influxd binary to cobra Command package #12615
Conversation
7317fea
to
f7dc808
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.
LGTM 👍 needs a CHANGELOG entry.
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.
Solid!
cmd/influxd/launcher/launcher.go
Outdated
{ | ||
DestP: &l.logLevel, | ||
Flag: "log-level", | ||
Default: "info", |
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.
I wouldn't mind zapcore.InfoLevel.String()
but not important.
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.
Done
Permits binary packages to set a global BuildInfo state that can be inspected by other packages
This commit consists of several improvements or changes: * migrate the influxd binary to cobra.Command * introduce a default run sub-command to start the server * register the run sub-command flags with viper to maintain compatibility with the existing behavior of automatic binding of flags to environment variables. Closes #12602
* Add CHANGELOG entry * Remote erroneous comment
53f4f18
to
c8d70fd
Compare
This PR consists of several improvements or changes to the
influxd
binary:influxd
binary to thecobra
CLI packagerun
subcommand to start the serverrun
command by default, if no sub-command is specifiedrun
subcommand flags with viper. This ensures compatibility with the existing behavior of automatic binding of flags to environment variables.Closes #12602