Merge pull request #698 from fanquake/bitcoin_cli_0191
Update _bitcoin-cli completion for v0.19.1
This commit is contained in:
commit
3b36dcfe77
|
@ -43,18 +43,19 @@ _bitcoin-cli() {
|
||||||
|
|
||||||
_arguments -C \
|
_arguments -C \
|
||||||
-?'[This help message]' \
|
-?'[This help message]' \
|
||||||
-conf='[Specify configuration file (default: bitcoin.conf)]:PATH:_files' \
|
-conf='[Specify configuration file. Relative paths will be prefixed by datadir location. (default: bitcoin.conf)]:PATH:_files' \
|
||||||
-datadir='[Specify data directory]:PATH:_directories' \
|
-datadir='[Specify data directory]:PATH:_directories' \
|
||||||
|
-getinfo='[Get general information from the remote server.]' \
|
||||||
-testnet'[Use the test chain]' \
|
-testnet'[Use the test chain]' \
|
||||||
-regtest'[Enter regression test mode, which uses a special chain in which blocks can be solved instantly. This is intended for regression testing tools and app development.]' \
|
-regtest'[Enter regression test mode, which uses a special chain in which blocks can be solved instantly. This is intended for regression testing tools and app development.]' \
|
||||||
-named'[Pass named instead of positional arguments (default: false)]' \
|
-named'[Pass named instead of positional arguments (default: false)]' \
|
||||||
-stdin'[Read extra arguments from standard input, one per line until EOF/Ctrl-D (recommended for sensitive information such as passphrases)]' \
|
-stdin'[Read extra arguments from standard input, one per line until EOF/Ctrl-D (recommended for sensitive information such as passphrases)]' \
|
||||||
-rpcport='[Connect to JSON-RPC on <port> (default: 8332 or testnet: 18332)]: :_guard "[[\:digit\:]]#" "PORT"' \
|
-rpcport='[Connect to JSON-RPC on <port> (default: 8332, testnet: 18332, regtest: 18443)]: :_guard "[[\:digit\:]]#" "PORT"' \
|
||||||
-rpcwait'[Wait for RPC server to start]' \
|
-rpcwait'[Wait for RPC server to start]' \
|
||||||
-rpcuser='[Username for JSON-RPC connections]:RPCUSER:()' \
|
-rpcuser='[Username for JSON-RPC connections]:RPCUSER:()' \
|
||||||
-rpcpassword='[Password for JSON-RPC connections]:RPCPASSWORD:()' \
|
-rpcpassword='[Password for JSON-RPC connections]:RPCPASSWORD:()' \
|
||||||
-rpcconnect='[Send commands to node running on <ip> (default: 127.0.0.1)]:RPCCONNECT:_hosts' \
|
-rpcconnect='[Send commands to node running on <ip> (default: 127.0.0.1)]:RPCCONNECT:_hosts' \
|
||||||
-rpcclienttimeout='[Timeout during HTTP requests (default: 900)]: :_guard "[[\:digit\:]]#" "RPCCLIENTTIMEOUT"' \
|
-rpcclienttimeout='[Timeout during HTTP requests, or 0 for no timeout. (default: 900)]: :_guard "[[\:digit\:]]#" "RPCCLIENTTIMEOUT"' \
|
||||||
':subcommand:->subcommand' && ret=0
|
':subcommand:->subcommand' && ret=0
|
||||||
|
|
||||||
case $state in
|
case $state in
|
||||||
|
@ -64,9 +65,12 @@ _bitcoin-cli() {
|
||||||
'getblock'
|
'getblock'
|
||||||
'getblockchaininfo'
|
'getblockchaininfo'
|
||||||
'getblockcount'
|
'getblockcount'
|
||||||
|
'getblockfilter'
|
||||||
'getblockhash'
|
'getblockhash'
|
||||||
'getblockheader'
|
'getblockheader'
|
||||||
|
'getblockstats'
|
||||||
'getchaintips'
|
'getchaintips'
|
||||||
|
'getchaintxstats'
|
||||||
'getdifficulty'
|
'getdifficulty'
|
||||||
'getmempoolancestors'
|
'getmempoolancestors'
|
||||||
'getmempooldescendants'
|
'getmempooldescendants'
|
||||||
|
@ -78,19 +82,23 @@ _bitcoin-cli() {
|
||||||
'gettxoutsetinfo'
|
'gettxoutsetinfo'
|
||||||
'preciousblock'
|
'preciousblock'
|
||||||
'pruneblockchain'
|
'pruneblockchain'
|
||||||
|
'savemempool'
|
||||||
|
'scantxoutset'
|
||||||
'verifychain'
|
'verifychain'
|
||||||
'verifytxoutproof'
|
'verifytxoutproof'
|
||||||
'getinfo'
|
|
||||||
'getmemoryinfo'
|
'getmemoryinfo'
|
||||||
|
'getrpcinfo'
|
||||||
'help'
|
'help'
|
||||||
|
'logging'
|
||||||
'stop'
|
'stop'
|
||||||
'generate'
|
'uptime'
|
||||||
'generatetoaddress'
|
'generatetoaddress'
|
||||||
'getblocktemplate'
|
'getblocktemplate'
|
||||||
'getmininginfo'
|
'getmininginfo'
|
||||||
'getnetworkhashps'
|
'getnetworkhashps'
|
||||||
'prioritisetransaction'
|
'prioritisetransaction'
|
||||||
'submitblock'
|
'submitblock'
|
||||||
|
'submitheader'
|
||||||
'addnode'
|
'addnode'
|
||||||
'clearbanned'
|
'clearbanned'
|
||||||
'disconnectnode'
|
'disconnectnode'
|
||||||
|
@ -98,41 +106,53 @@ _bitcoin-cli() {
|
||||||
'getconnectioncount'
|
'getconnectioncount'
|
||||||
'getnettotals'
|
'getnettotals'
|
||||||
'getnetworkinfo'
|
'getnetworkinfo'
|
||||||
|
'getnodeaddresses'
|
||||||
'getpeerinfo'
|
'getpeerinfo'
|
||||||
'listbanned'
|
'listbanned'
|
||||||
'ping'
|
'ping'
|
||||||
'setban'
|
'setban'
|
||||||
'setnetworkactive'
|
'setnetworkactive'
|
||||||
|
'analyzepsbt'
|
||||||
|
'combinepsbt'
|
||||||
|
'combinerawtransaction'
|
||||||
|
'converttopsbt'
|
||||||
|
'createpsbt'
|
||||||
'createrawtransaction'
|
'createrawtransaction'
|
||||||
|
'decodepsbt'
|
||||||
'decoderawtransaction'
|
'decoderawtransaction'
|
||||||
'decodescript'
|
'decodescript'
|
||||||
|
'finalizepsbt'
|
||||||
'fundrawtransaction'
|
'fundrawtransaction'
|
||||||
'getrawtransaction'
|
'getrawtransaction'
|
||||||
|
'joinpsbts'
|
||||||
'sendrawtransaction'
|
'sendrawtransaction'
|
||||||
'signrawtransaction'
|
'signrawtransactionwithkey'
|
||||||
|
'testmempoolaccept'
|
||||||
|
'utxoupdatepsbt'
|
||||||
'createmultisig'
|
'createmultisig'
|
||||||
'estimatefee'
|
'deriveaddresses'
|
||||||
'estimatepriority'
|
|
||||||
'estimatesmartfee'
|
'estimatesmartfee'
|
||||||
'estimatesmartpriority'
|
'getdescriptorinfo'
|
||||||
'signmessagewithprivkey'
|
'signmessagewithprivkey'
|
||||||
'validateaddress'
|
'validateaddress'
|
||||||
'verifymessage'
|
'verifymessage'
|
||||||
'abandontransaction'
|
'abandontransaction'
|
||||||
|
'abortrescan'
|
||||||
'addmultisigaddress'
|
'addmultisigaddress'
|
||||||
'addwitnessaddress'
|
|
||||||
'backupwallet'
|
'backupwallet'
|
||||||
'bumpfee'
|
'bumpfee'
|
||||||
|
'createwallet'
|
||||||
'dumpprivkey'
|
'dumpprivkey'
|
||||||
'dumpwallet'
|
'dumpwallet'
|
||||||
'getaccount'
|
'encryptwallet'
|
||||||
'getaccountaddress'
|
'getaddressesbylabel'
|
||||||
'getaddressesbyaccount'
|
'getaddressinfo'
|
||||||
'getbalance'
|
'getbalance'
|
||||||
|
'getbalances'
|
||||||
'getnewaddress'
|
'getnewaddress'
|
||||||
'getrawchangeaddress'
|
'getrawchangeaddress'
|
||||||
'getreceivedbyaccount'
|
|
||||||
'getreceivedbyaddress'
|
'getreceivedbyaddress'
|
||||||
|
'getreceivedbylabel'
|
||||||
'gettransaction'
|
'gettransaction'
|
||||||
'getunconfirmedbalance'
|
'getunconfirmedbalance'
|
||||||
'getwalletinfo'
|
'getwalletinfo'
|
||||||
|
@ -143,26 +163,35 @@ _bitcoin-cli() {
|
||||||
'importpubkey'
|
'importpubkey'
|
||||||
'importwallet'
|
'importwallet'
|
||||||
'keypoolrefill'
|
'keypoolrefill'
|
||||||
'listaccounts'
|
|
||||||
'listaddressgroupings'
|
'listaddressgroupings'
|
||||||
|
'listlabels'
|
||||||
'listlockunspent'
|
'listlockunspent'
|
||||||
'listreceivedbyaccount'
|
|
||||||
'listreceivedbyaddress'
|
'listreceivedbyaddress'
|
||||||
|
'listreceivedbylabel'
|
||||||
'listsinceblock'
|
'listsinceblock'
|
||||||
'listtransactions'
|
'listtransactions'
|
||||||
'listunspent'
|
'listunspent'
|
||||||
|
'listwalletdir'
|
||||||
|
'listwallets'
|
||||||
|
'loadwallet'
|
||||||
'lockunspent'
|
'lockunspent'
|
||||||
'move'
|
|
||||||
'removeprunedfunds'
|
'removeprunedfunds'
|
||||||
'sendfrom'
|
'rescanblockchain'
|
||||||
'sendmany'
|
'sendmany'
|
||||||
'sendtoaddress'
|
'sendtoaddress'
|
||||||
'setaccount'
|
'sethdseed'
|
||||||
|
'setlabel'
|
||||||
'settxfee'
|
'settxfee'
|
||||||
|
'setwalletflag'
|
||||||
'signmessage'
|
'signmessage'
|
||||||
|
'signrawtransactionwithwallet'
|
||||||
|
'unloadwallet'
|
||||||
|
'walletcreatefundedpsbt'
|
||||||
'walletlock'
|
'walletlock'
|
||||||
'walletpassphrase'
|
'walletpassphrase'
|
||||||
'walletpassphrasechange'
|
'walletpassphrasechange'
|
||||||
|
'walletprocesspsbt'
|
||||||
|
'getzmqnotifications'
|
||||||
)
|
)
|
||||||
|
|
||||||
_describe -t subcommands 'bitcoin-cli subcommands' subcommands && ret=0
|
_describe -t subcommands 'bitcoin-cli subcommands' subcommands && ret=0
|
||||||
|
|
Loading…
Reference in New Issue