Skip to content

Commit

Permalink
Update command names
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 7, 2023
1 parent 27a0b7d commit eac33f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions go/cmd/vtctldclient/command/vreplication/common/complete.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ var completeOptions = struct {

func GetCompleteCommand(opts *SubCommandsOpts) *cobra.Command {
cmd := &cobra.Command{
Use: "complete",
Use: "Complete",
Short: "Complete a MoveTables VReplication workflow.",
Example: `vtctldclient --server localhost:15999 movetables --workflow commerce2customer --target-keyspace customer complete`,
DisableFlagsInUseLine: true,
Aliases: []string{"Complete"},
Aliases: []string{"complete"},
Args: cobra.NoArgs,
RunE: commandComplete,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ func GetSwitchTrafficCommand(opts *SubCommandsOpts) *cobra.Command {

func GetReverseTrafficCommand(opts *SubCommandsOpts) *cobra.Command {
cmd := &cobra.Command{
Use: "reversetraffic",
Use: "ReverseTraffic",
Short: fmt.Sprintf("Reverse traffic for a %s VReplication workflow.", opts.SubCommand),
Example: fmt.Sprintf(`vtctldclient --server localhost:15999 %s --workflow %s --target-keyspace customer reversetraffic`, opts.SubCommand, opts.Workflow),
DisableFlagsInUseLine: true,
Aliases: []string{"ReverseTraffic"},
Aliases: []string{"reversetraffic"},
Args: cobra.NoArgs,
PreRunE: func(cmd *cobra.Command, args []string) error {
CommonSwitchTrafficOptions.Direction = workflow.DirectionBackward
Expand Down

0 comments on commit eac33f2

Please sign in to comment.