Skip to content

Commit

Permalink
Update the CLI tools (#2837)
Browse files Browse the repository at this point in the history
The latest eclair release added some RPCs that were missing from the CLI documentation.
  • Loading branch information
rorp authored Mar 13, 2024
1 parent 40ef365 commit c8184b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/eclair-cli.bash-completion
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ _eclair-cli()
*)
# works fine, but is too slow at the moment.
# allopts=$($eclaircli help 2>&1 | awk '$1 ~ /^"/ { sub(/,/, ""); print $1}' | sed 's/[":]//g')
allopts="getinfo connect open cpfpbumpfees close forceclose bumpforceclose updaterelayfee peers channels channel closedchannels allnodes allchannels allupdates findroute findroutetonode findroutebetweennodes parseinvoice payinvoice sendtonode getsentinfo createinvoice getinvoice listinvoices listpendinginvoices listreceivedpayments getreceivedinfo audit networkfees channelstats"
allopts="allchannels allupdates audit bumpforceclose channel channelbalances channels channelstats close closedchannels connect cpfpbumpfees createinvoice deleteinvoice disconnect findroute findroutebetweennodes findroutetonode forceclose getdescriptors getinfo getinvoice getmasterxpub getnewaddress getreceivedinfo getsentinfo globalbalance listinvoices listpendinginvoices listreceivedpayments networkfees node nodes onchainbalance onchaintransactions open parseinvoice payinvoice payoffer peers rbfopen sendonchain sendonionmessage sendtonode sendtoroute signmessage splicein spliceout stop updaterelayfee usablebalances verifymessage"

if ! [[ " $allopts " =~ " $prev " ]]; then # prevent double arguments
if [[ -z "$cur" || "$cur" =~ ^[a-z] ]]; then
Expand Down
4 changes: 4 additions & 0 deletions eclair-core/eclair-cli
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,12 @@ and COMMAND is one of the available commands:
=== Payment ===
- usablebalances
- payinvoice
- payoffer
- sendtonode
- sendtoroute
- getsentinfo
- getreceivedinfo
- listreceivedpayments
=== Message ===
- signmessage
Expand All @@ -91,6 +93,8 @@ and COMMAND is one of the available commands:
- onchainbalance
- onchaintransactions
- globalbalance
- getmasterxpub
- getdescriptors
Examples
--------
Expand Down

0 comments on commit c8184b3

Please sign in to comment.