forked from ElementsProject/lightning
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cln-plugin: Allow setting
usage
of RPC-method
The `cln-plugin` can be used to create a plugin that registers additional rpc-methods. However, it doesn't allow to specify the `usage` of the command. This change makes it possible to specify the `usage`. It should not contain any breaking changes. I've opted to add a new method called `rpcmethod_from_builder` to the `Builder` struct. This approach allows us to add new parameters in the future.
- Loading branch information
1 parent
43e302c
commit e3e3a3d
Showing
1 changed file
with
57 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters