From eac33f21fe70e09adf71bc2150485734d0fa7df5 Mon Sep 17 00:00:00 2001 From: Rohit Nayak Date: Thu, 7 Sep 2023 21:57:38 +0200 Subject: [PATCH] Update command names Signed-off-by: Rohit Nayak --- go/cmd/vtctldclient/command/vreplication/common/complete.go | 4 ++-- .../vtctldclient/command/vreplication/common/switchtraffic.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go/cmd/vtctldclient/command/vreplication/common/complete.go b/go/cmd/vtctldclient/command/vreplication/common/complete.go index 3b48180c2e3..69a5a4c017f 100644 --- a/go/cmd/vtctldclient/command/vreplication/common/complete.go +++ b/go/cmd/vtctldclient/command/vreplication/common/complete.go @@ -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, } diff --git a/go/cmd/vtctldclient/command/vreplication/common/switchtraffic.go b/go/cmd/vtctldclient/command/vreplication/common/switchtraffic.go index cdb3a44066e..dd604a0cc97 100644 --- a/go/cmd/vtctldclient/command/vreplication/common/switchtraffic.go +++ b/go/cmd/vtctldclient/command/vreplication/common/switchtraffic.go @@ -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