Skip to content

Commit

Permalink
Add back the example Workflow name for the helptext Examples section
Browse files Browse the repository at this point in the history
Signed-off-by: Rohit Nayak <[email protected]>
  • Loading branch information
rohit-nayak-ps committed Sep 12, 2023
1 parent 47547f9 commit 84dbff3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion go/cmd/vtctldclient/command/vreplication/common/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func RegisterCommands(root *cobra.Command) {

type SubCommandsOpts struct {
SubCommand string
Workflow string
Workflow string // used to specify an example workflow name for the Examples section of the help output.
}

func SetClient(c vtctldclient.VtctldClient) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ func registerMoveTablesCommands(root *cobra.Command) {
registerCreateCommand(moveTables)
opts := &common.SubCommandsOpts{
SubCommand: "MoveTables",
Workflow: "commerce2customer",
}
moveTables.AddCommand(common.GetShowCommand(opts))
moveTables.AddCommand(common.GetStatusCommand(opts))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ func registerReshardCommands(root *cobra.Command) {
registerCreateCommand(reshard)
opts := &common.SubCommandsOpts{
SubCommand: "Reshard",
Workflow: "cust2cust",
}
reshard.AddCommand(common.GetShowCommand(opts))
reshard.AddCommand(common.GetStatusCommand(opts))
Expand Down

0 comments on commit 84dbff3

Please sign in to comment.