-
Notifications
You must be signed in to change notification settings - Fork 28
Add support for generating BitVM cache via CLI command and minor refactor #1225
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
base: main
Are you sure you want to change the base?
Conversation
- Introduced `GenerateBitvmCache` actor in the CLI. - Added `parse_cli_args` function to handle CLI arguments without loading configuration. - Implemented early command handling for `generate-bitvm-cache` in the main function, allowing for cache generation without requiring full configuration. - Enhanced error handling for CLI argument parsing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds CLI support for generating the BitVM cache independently without requiring full configuration. The implementation introduces a new GenerateBitvmCache actor and handles it early in the main function before configuration loading.
Key changes:
- Introduced
GenerateBitvmCacheactor for cache generation without config requirements - Added
parse_cli_argsfunction to parse CLI arguments independently of configuration loading - Implemented early command handling that bypasses configuration requirements for cache generation
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| core/src/cli.rs | Adds GenerateBitvmCache actor enum variant and parse_cli_args function for config-independent argument parsing |
| core/src/main.rs | Implements early handling of GenerateBitvmCache command before config loading, and adds unreachable branch for the actor in the main match statement |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
atacann
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, its just that cli::Actors::GenerateBitvmCache looks funny :D, we could use clap Subcommand maybe
Description
GenerateBitvmCacheactor in the CLI.parse_cli_argsfunction to handle CLI arguments without loading configuration.generate-bitvm-cachein the main function, allowing for cache generation without requiring full configuration.Describe what this pull request does, here.
Linked Issues