From 875469387b64310c1c02dd1fc65def7645046621 Mon Sep 17 00:00:00 2001 From: Congqi Xia Date: Mon, 27 Mar 2023 11:58:14 +0800 Subject: [PATCH] Add short description for cmd in backup mode Signed-off-by: Congqi Xia --- states/etcd/commands.go | 3 ++- states/etcd/remove/channel.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/states/etcd/commands.go b/states/etcd/commands.go index 81dec9b1..f80d4c8b 100644 --- a/states/etcd/commands.go +++ b/states/etcd/commands.go @@ -99,7 +99,8 @@ func RemoveCommand(cli clientv3.KV, basePath string) *cobra.Command { // RawCommands provides raw "get" command to list kv in etcd func RawCommands(cli clientv3.KV) []*cobra.Command { cmd := &cobra.Command{ - Use: "get", + Use: "get", + Short: "equivalent to etcd get(withPrefix) command to fetch raw kv values from backup file", Run: func(cmd *cobra.Command, args []string) { for _, arg := range args { fmt.Println("list with", arg) diff --git a/states/etcd/remove/channel.go b/states/etcd/remove/channel.go index 90a4bf36..878776eb 100644 --- a/states/etcd/remove/channel.go +++ b/states/etcd/remove/channel.go @@ -85,7 +85,7 @@ func ChannelCommand(cli clientv3.KV, basePath string) *cobra.Command { }, } - cmd.Flags().Bool("run", false, "flags indicating whether to remove segment from meta") + cmd.Flags().Bool("run", false, "flags indicating whether to remove channel from meta") cmd.Flags().String("channel", "", "channel name to remove") return cmd }