mirror of
https://github.com/ACINQ/eclair.git
synced 2025-03-13 11:35:47 +01:00
Update bash autocompletion for eclair-cli (#983)
* Update bash autocompletition file to suggest all the endpoints * Update list of commands in eclair-cli help message
This commit is contained in:
parent
7b874f23d2
commit
100cce1077
2 changed files with 5 additions and 5 deletions
|
@ -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 close forceclose updaterelayfee peers channels channel allnodes allchannels allupdates receive parseinvoice findroute findroutetonode send sendtonode checkpayment audit networkfees channelstats"
|
||||
allopts="getinfo connect open close forceclose updaterelayfee peers channels channel allnodes allchannels allupdates findroute findroutetonode parseinvoice payinvoice sendtonode getsentinfo createinvoice getinvoice listinvoices listpendinginvoices getreceivedinfo audit networkfees channelstats"
|
||||
|
||||
if ! [[ " $allopts " =~ " $prev " ]]; then # prevent double arguments
|
||||
if [[ -z "$cur" || "$cur" =~ ^[a-z] ]]; then
|
||||
|
|
|
@ -28,10 +28,10 @@ where OPTIONS can be:
|
|||
|
||||
and COMMAND is one of:
|
||||
getinfo, connect, open, close, forceclose, updaterelayfee,
|
||||
peers, channels, channel, allnodes, allchannels, allupdates,
|
||||
receive, parseinvoice, findroute, findroutetonode,
|
||||
payinvoice, sendtonode, getreceivedinfo, audit, networkfees,
|
||||
channelstats, getsentinfo, getinvoice, allinvoice, listpendinginvoices
|
||||
peers, channels, channel, allnodes, allchannels, allupdates
|
||||
findroute, findroutetonode, parseinvoice, payinvoice, sendtonode,
|
||||
getsentinfo, createinvoice, getinvoice, listinvoices,
|
||||
listpendinginvoices, getreceivedinfo, audit, networkfees, channelstats
|
||||
|
||||
Examples
|
||||
--------
|
||||
|
|
Loading…
Add table
Reference in a new issue