Skip to content

Commit

Permalink
Auto merge of #12747 - flip1995:clippy-dev-cli-derive, r=Alexendoo
Browse files Browse the repository at this point in the history
Type safe CLI implementation for clippy-dev

Use the derive feature of `clap` to generate CLI of clippy-dev. Adding new commands will be easier in the future and we get better compile time checking through exhaustive matching.

---

I think I tested everything locally. But I would appreciate if the reviewer could go over it again, so that everything keeps working.

changelog: none
  • Loading branch information
bors committed May 6, 2024
2 parents 2800251 + 537ab6c commit 3ef3a13
Show file tree
Hide file tree
Showing 6 changed files with 266 additions and 329 deletions.
3 changes: 2 additions & 1 deletion clippy_dev/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
[package]
name = "clippy_dev"
description = "Clippy developer tooling"
version = "0.0.1"
edition = "2021"

[dependencies]
aho-corasick = "1.0"
clap = "4.1.4"
clap = { version = "4.4", features = ["derive"] }
indoc = "1.0"
itertools = "0.12"
opener = "0.6"
Expand Down
Loading

0 comments on commit 3ef3a13

Please sign in to comment.