-
Notifications
You must be signed in to change notification settings - Fork 41
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
Conversation
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.
looks good, just a javadoc update and a note about calling super
/** | ||
* 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 | ||
*/ |
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.
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(); |
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.
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(); |
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.
same as above
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>
No description provided.