-
-
Notifications
You must be signed in to change notification settings - Fork 289
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
feat: rename prover CLI start command as proxy and make it default #6428
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## unstable #6428 +/- ##
============================================
- Coverage 61.72% 61.70% -0.03%
============================================
Files 553 553
Lines 57862 57858 -4
Branches 1829 1829
============================================
- Hits 35717 35702 -15
- Misses 22108 22119 +11
Partials 37 37 |
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.
Doesn't this restrict the extensibility of the CLI as it will match any subcommand?
I'd agree that start
is not a good name for the sub command, maybe just rename it to proxy
? We also need to be mindful when renaming commands as it breaks current usage but I don't know of anybody even uses the prover as a proxy server.
Performance Report✔️ no performance regression detected Full benchmark results
|
I am under the impression that there are no other commands planned in the foreseeable future. Maybe @nazarhussain can comment on that. |
My plans were to provide some utility commands like But don't have any planned schedule for such features. |
Great ideas! Ok, I will just rename to |
06c7f6a
to
be84c20
Compare
packages/prover/src/cli/cli.ts
Outdated
@@ -48,6 +48,9 @@ export function getLodestarProverCli(): yargs.Argv { | |||
registerCommandToYargs(prover, cmd); | |||
} | |||
|
|||
// Register the proxy command as the default one | |||
registerCommandToYargs(prover, {...proverProxyStartCommand, command: '*'}); |
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.
What happens if you run lodestar-prover --help
, I would assume it no longer prints out global flags and a list of available commands.
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.
It prints the global help screen, as before. lodestar-prover proxy --help
prints the help for the proxy
command as expected.
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.
That will be a breaking change, we need to discuss and finalize the release strategy for prover in such cases. Opened a discussion point for next meeting. #6434 (comment)
The PR description and title needs to be updated to properly reflect the changes. We might also wanna label this PR as breaking change and add a BREAKING CHANGE note as well with the changes required |
🎉 This PR is included in v1.16.0 🎉 |
Motivation
prover
CLI has a single command,start
, rename it asproxy
and make it the default for better UXDescription
It's now possible to start the prover using
npx @chainsafe/prover proxy ...
ornpx @chainsafe/prover ...
(previously wasnpx @chainsafe/prover start ...
).This is a breaking change as the old
start
command won't work anymore.