Move dbconfigs to pflag and remove deprecated flags#11336
Move dbconfigs to pflag and remove deprecated flags#11336mattlord merged 7 commits intovitessio:mainfrom
Conversation
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
If a new flag is being introduced:
If a workflow is added or modified:
Bug fixes
Non-trivial changes
New/Existing features
Backward compatibility
|
And remove deprecated flags Signed-off-by: Matt Lord <mattalord@gmail.com>
f567b7d to
cfefc7d
Compare
Signed-off-by: Matt Lord <mattalord@gmail.com>
ajm188
left a comment
There was a problem hiding this comment.
this looks great!!! awesome stuff ❤️
| // Type returns the value type, part of the pflag Value interface | ||
| // for allowing this to be used as a generic flag. | ||
| func (mode *SslMode) Type() string { | ||
| return "SslMode" |
There was a problem hiding this comment.
imo this should return "string" but idk what the best-practice for pflag is here see for example how StringSliceVar shows up as "strings" in the help output
There was a problem hiding this comment.
That's what I thought too, that's what I started with but then had failures. This was only needed because SslMode is an alias for string.
There was a problem hiding this comment.
no no, i mean the value returned by this function should be the literal string "string", not the string "SslMode"
There was a problem hiding this comment.
That's what I thought you meant. It's also what I meant. 😄
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
Description
This migrates the
dbconfigpackage flags from go flag to pflag. It also takes the opportunity to finally remove all of the long deprecated flags (first deprecated in 3.0).Related Issue(s)
package go/vt/dbconfigs#10750Checklist