tikv / tikv/pd

Use one tool with many subcommands instead of many tools

Open
#2,527 2 comments 0 reactions 0 assignees View on GitHub
component/tools Hacktoberfest help wanted type/enhancement
Dominant language
Go
Stars
1.2k
Forks
783
Avg merge
5d 21h
Merged PRs (30d)
36

Description

## Feature Request

### Describe your feature request related problem

We have many tools in https://github.com/tikv/pd/tree/master/tools like `regions-dump`, `stores-dump`, `pd-recover`, `pd-backup`, and so forth. These tools usually help us recover the cluster and investigate the problem we meet.

### Describe the feature you'd like

It's better to use one tool but provide subcommands. We can use cobra to do it. For more details about how to use cobra can be found in https://github.com/spf13/cobra#using-the-cobra-library

The expected results might be:
```
pd-xxx regions-dump
pd-xxx stores-dump
pd-xxx backup
...
```

### Teachability, Documentation, Adoption, Migration Strategy

- Golang
- cobra

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.