hexpm-rust
hexpm-rust copied to clipboard
Clippy lints
Just clippy lints
@lpil Should I add clap as a dependency and derive clap::ValueEnum so that OwnerLevel can be parsed by Clap?
It seems like a similar approach is taken in say compiler-core but there a bunch of strum and serde macros are used instead.
Alternatively I could instead just make the clap command take a string and then manually pattern match against the string. This I think(?) would require a new Error variant to be added to gleam-core which mimics what Clap already says with invalid arguments though.
I'm not sure what you mean, sorry. We don't want to depend on Clap at all here.
This PR is probably obsolete by the changes that have been introduced in PR https://github.com/gleam-lang/hexpm-rust/pull/37 and PR https://github.com/gleam-lang/hexpm-rust/pull/38.