[backport] [vtctldclient] Update CLI docs for usages, flags, and aliases (#10502)#10509
Merged
ajm188 merged 1 commit intovitessio:release-14.0from Jun 14, 2022
Merged
Conversation
…io#10502) * Update docs for backup commands Signed-off-by: Andrew Mason <andrew@planetscale.com> * Update docs for cell commands Signed-off-by: Andrew Mason <andrew@planetscale.com> * Update docs for keyspace commands Signed-off-by: Andrew Mason <andrew@planetscale.com> * Update docs for legacy-shim command Signed-off-by: Andrew Mason <andrew@planetscale.com> * Update docs, add aliases for reparent commands Signed-off-by: Andrew Mason <andrew@planetscale.com> * Update docs for root command Signed-off-by: Andrew Mason <andrew@planetscale.com> * Update docs for routing rule commands Signed-off-by: Andrew Mason <andrew@planetscale.com> * Update docs for schema commands Signed-off-by: Andrew Mason <andrew@planetscale.com> * Update docs for serving graph commands Signed-off-by: Andrew Mason <andrew@planetscale.com> * Update docs for shard commands Signed-off-by: Andrew Mason <andrew@planetscale.com> * Update docs for tablet commands Signed-off-by: Andrew Mason <andrew@planetscale.com> * Update docs for vschema commands Signed-off-by: Andrew Mason <andrew@planetscale.com> * Update docs for workflow commands Signed-off-by: Andrew Mason <andrew@planetscale.com> * Remove references to deprecated flags Signed-off-by: Andrew Mason <andrew@planetscale.com> * fixup! Update docs for keyspace commands Signed-off-by: Andrew Mason <andrew@planetscale.com> * Remove reparent command aliases Signed-off-by: Andrew Mason <andrew@planetscale.com> * Specify that `--server` is required Signed-off-by: Andrew Mason <andrew@planetscale.com>
Contributor
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Bug fixes
Non-trivial changes
New/Existing features
Backward compatibility
|
deepthi
reviewed
Jun 14, 2022
| // CreateKeyspace makes a CreateKeyspace gRPC call to a vtctld. | ||
| CreateKeyspace = &cobra.Command{ | ||
| Use: "CreateKeyspace <keyspace> [--force|-f] [--type KEYSPACE_TYPE] [--sharding-column-name NAME --sharding-column-type TYPE] [--base-keyspace KEYSPACE --snapshot-timestamp TIME] [--served-from DB_TYPE:KEYSPACE ...] [--durability-policy=policy_name]", | ||
| Use: "CreateKeyspace <keyspace> [--force|-f] [--type KEYSPACE_TYPE] [--base-keyspace KEYSPACE --snapshot-timestamp TIME] [--served-from DB_TYPE:KEYSPACE ...] [--durability-policy <policy_name>]", |
Collaborator
There was a problem hiding this comment.
It made sense to remove these flags on main from Use because we have already deleted the underlying functionality.
On 14.0 however, we have only deprecated them, not deleted them. Should we leave them in Use? Or do something like [--sharding-column-name NAME (deprecated) --sharding-column-type TYPE (deprecated)]
Contributor
Author
There was a problem hiding this comment.
I'm gonna argue for "no" (but not super committed to this; happy to take your suggestion if this doesn't convince you!) on the following points:
- Not showing in the
Usediscourages (but does not prevent) people from using the deprecated options - They will still show up in
--help - Using the flags will not cause an error and will still print the deprecation warning:
➜ vitess git:(andrew/bp-10502) ✗ ./bin/vtctldclient --server ":15999" CreateKeyspace ks1 --sharding-column-name foobar
Flag --sharding-column-name has been deprecated, Specifying a sharding-column-name on the Keyspace is deprecated and will be removed in a future release.
Collaborator
There was a problem hiding this comment.
Ok, I'm convinced that Use should display "recommended" usage versus "deprecated" usage.
deepthi
approved these changes
Jun 14, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This backports #10502 to release-14.0
Related Issue(s)
Checklist
Deployment Notes