Skip to content
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

Change DB Manager Clap usage to derive #5898

Merged
merged 8 commits into from
Jul 12, 2024

Conversation

eserilev
Copy link
Collaborator

@eserilev eserilev commented Jun 6, 2024

partially #5900

This is part of a series of PRs that aims to move the Lighthouse cli to clap derive. This PR moves the db manager crate to clap derive and introduces the ability to include clap derive subcommands within our existing clap builder flag definitions.

@eserilev eserilev changed the title Move DB Manager crate to Clap Derive Change DB Manager Clap usage to derive Jun 6, 2024
@eserilev eserilev mentioned this pull request Jun 6, 2024
8 tasks
@eserilev eserilev marked this pull request as ready for review June 6, 2024 14:41
@eserilev eserilev added the ready-for-review The code is ready for review label Jun 17, 2024
@michaelsproul
Copy link
Member

michaelsproul commented Jun 19, 2024

Noticed that e.g. lighthouse db inspect --help doesn't work. We might want to declare the help flag as a global flag or something?

@eserilev
Copy link
Collaborator Author

nice catch, 897bd8d defines the help flag as global now. this seems to have fixed the issue

Copy link
Collaborator

@dapplion dapplion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Looking forward to see all CLIs with derive :)

@jimmygchen jimmygchen added ready-for-merge This PR is ready to merge. and removed ready-for-review The code is ready for review labels Jul 12, 2024
@jimmygchen
Copy link
Member

@mergify queue

Copy link

mergify bot commented Jul 12, 2024

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at b7b5dd7

mergify bot added a commit that referenced this pull request Jul 12, 2024
@mergify mergify bot merged commit b7b5dd7 into sigp:unstable Jul 12, 2024
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code-quality ready-for-merge This PR is ready to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants