Skip to content

Commit

Permalink
Type safe CLI implementation for clippy-dev
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
flip1995 committed May 3, 2024
1 parent 993d8ae commit a0d562a
Show file tree
Hide file tree
Showing 5 changed files with 265 additions and 328 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.1.4", features = ["derive"] }
indoc = "1.0"
itertools = "0.12"
opener = "0.6"
Expand Down
Loading

0 comments on commit a0d562a

Please sign in to comment.