Skip to content

Clippy lints #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

Pi-Cla
Copy link

@Pi-Cla Pi-Cla commented May 31, 2024

Just clippy lints

@Pi-Cla Pi-Cla force-pushed the ownerlevel-valueenum branch from 63653bb to ce3ac19 Compare May 31, 2024 21:58
@Pi-Cla Pi-Cla changed the title Clippy lints and add clap::ValueEnum derivation to OwnerLevel Clippy lints May 31, 2024
@Pi-Cla
Copy link
Author

Pi-Cla commented May 31, 2024

@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.

@Pi-Cla Pi-Cla marked this pull request as draft May 31, 2024 22:08
@lpil
Copy link
Member

lpil commented Jun 12, 2024

I'm not sure what you mean, sorry. We don't want to depend on Clap at all here.

@diemogebhardt
Copy link
Contributor

This PR is probably obsolete by the changes that have been introduced in PR #37 and PR #38.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants