Skip to content

Commit

Permalink
tikv-ctl: Migrate clap to structopt (tikv#10837)
Browse files Browse the repository at this point in the history
* tikv-ctl: Migrate clap to structopt

Signed-off-by: Peng Guanwen <[email protected]>

* Fix clippy errors

Signed-off-by: Peng Guanwen <[email protected]>

* Allow running without subcommand

Signed-off-by: Peng Guanwen <[email protected]>

* remove duplicate code

Signed-off-by: Peng Guanwen <[email protected]>
  • Loading branch information
peng1999 authored Sep 22, 2021
1 parent 6be3893 commit ea1499f
Show file tree
Hide file tree
Showing 3 changed files with 939 additions and 1,181 deletions.
5 changes: 3 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions cmd/tikv-ctl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ chrono = "0.4"
crossbeam = "0.8"
tempfile = "3.0"
clap = "2.32"
structopt = "0.3"
concurrency_manager = { path = "../../components/concurrency_manager", default-features = false }
encryption_export = { path = "../../components/encryption/export", default-features = false }
engine_rocks = { path = "../../components/engine_rocks", default-features = false }
Expand Down
Loading

0 comments on commit ea1499f

Please sign in to comment.