Skip to content
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

Add command groupings to vtctldclient #7721

Open
ajm188 opened this issue Mar 20, 2021 · 0 comments
Open

Add command groupings to vtctldclient #7721

ajm188 opened this issue Mar 20, 2021 · 0 comments

Comments

@ajm188
Copy link
Contributor

ajm188 commented Mar 20, 2021

Feature Description

The old vtctlclient would group commands nicely into categories in the help output, e.g.:

Serving Graph:
  GetSrvKeyspaceNames <cell>
  GetSrvKeyspace <cell> <keyspace>
  GetSrvVSchema <cell>
  DeleteSrvVSchema <cell>

Replication Graph:
  GetShardReplication <cell> <keyspace/shard>

Workflow:
  VExec <ks.workflow> <query> --dry-run

Workflow:
  Workflow <ks.workflow> <action> --dry-run

Cells:
  AddCellInfo [-server_address <addr>] [-root <root>] <cell>
  UpdateCellInfo [-server_address <addr>] [-root <root>] <cell>
  DeleteCellInfo [-force] <cell>
  GetCellInfoNames 
  GetCellInfo <cell>

It would be nice to have this sort of grouping in the vtctldclient as well. There's an open issue on cobra for this, which itself links to a PR on google/kf, which might be some useful references in how we could do this as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Vtctld Service
  
To do
Development

No branches or pull requests

1 participant