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 short description for cmd in backup mode #129

Merged
merged 1 commit into from
Mar 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion states/etcd/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion states/etcd/remove/channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}