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

feat: improve design of shared and private CLI options #864

Merged
merged 8 commits into from
Jul 25, 2024

Conversation

powerslider
Copy link
Contributor

No description provided.

@powerslider powerslider requested a review from fab-10 July 25, 2024 08:23
Copy link
Collaborator

@fab-10 fab-10 left a comment

Choose a reason for hiding this comment

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

looks good, just a javadoc update and a note about calling super

Comment on lines 25 to 29
/**
* In this class we put CLI options that are private to plugins in this repo.
*
* <p>For the moment is just a placeholder since there are no private options
*/
Copy link
Collaborator

Choose a reason for hiding this comment

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

javadoc needs a refresh

@@ -63,6 +65,11 @@ private void createAndRegister(
method.getNamespace(), method.getName(), method::execute);
}

@Override
public Map<String, LineaOptionsPluginConfiguration> getLineaPluginConfigMap() {
return Map.of();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe here doesn't make a difference, but in general should call var superMap = super.getLineaPluginConfigMap() and add local mapping to the superMap

private BesuContext besuContext;
private RpcEndpointService rpcEndpointService;

@Override
public Map<String, LineaOptionsPluginConfiguration> getLineaPluginConfigMap() {
final TracesEndpointCliOptions tracesEndpointCliOptions = TracesEndpointCliOptions.create();
Copy link
Collaborator

Choose a reason for hiding this comment

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

same as above

powerslider and others added 2 commits July 25, 2024 11:41
fab-10 and others added 4 commits July 25, 2024 15:27
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
@powerslider powerslider merged commit 89ddb14 into arith-dev Jul 25, 2024
5 checks passed
@powerslider powerslider deleted the feat/issue-863/shared-private-options branch July 25, 2024 15:24
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.

2 participants