-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Switch flag definitions to be on pflag instead of flag in package go/vt/vtctl
#11304
Comments
I will do one subcommand in what I think is a good approach, but I'm leaving this one for volunteers. |
I took a look today, but didn't you end up doing them all? The referenced commit seems to be doing it for all the flags |
yeah, i realized it was simpler than to have two different ways to pass a flagset (since if i did just one command then i need two different |
@ajm188 Is this complete or is it outstanding? |
Outstanding. I'm working on it (see the linked PR), any ideas on the tests are welcome |
Closes vitessio#11304. Signed-off-by: Andrew Mason <[email protected]>
* [cli] [vtctl] Migrate all vtctl commands to `pflag` Closes #11304. Signed-off-by: Andrew Mason <[email protected]> * fix test flags Signed-off-by: Andrew Mason <[email protected]> * Handle subflag argument parsing without fully moving to cobra (yet!) Signed-off-by: Andrew Mason <[email protected]> * update examples Signed-off-by: Andrew Mason <[email protected]> * strip off double-dash Signed-off-by: Andrew Mason <[email protected]> * Fix pflag getting tripped on shard 0 bounded shard names Signed-off-by: Andrew Mason <[email protected]> * remove commented-out code Signed-off-by: Andrew Mason <[email protected]> * update release notes Signed-off-by: Andrew Mason <[email protected]> * fix ExecuteHook, which takes no flags Signed-off-by: Andrew Mason <[email protected]> * add deprecation notice around interspersal Signed-off-by: Andrew Mason <[email protected]> * fix flags for vtctld2 web calls Signed-off-by: Andrew Mason <[email protected]> * Run make web_build Signed-off-by: notfelineit <[email protected]> * test: fix vtctld_web_test Signed-off-by: deepthi <[email protected]> * update test assertions Signed-off-by: Andrew Mason <[email protected]> * just double-dash everything Signed-off-by: Andrew Mason <[email protected]> * Run make web_build Signed-off-by: notfelineit <[email protected]> Signed-off-by: Andrew Mason <[email protected]> Signed-off-by: notfelineit <[email protected]> Signed-off-by: deepthi <[email protected]> Co-authored-by: notfelineit <[email protected]> Co-authored-by: deepthi <[email protected]>
Part of #10697.
Current flags:
The text was updated successfully, but these errors were encountered: