Merge pull request #1003 from notmike-5/master

updated _bitcoin-cli to match bitcoind v24.1rc1
This commit is contained in:
Shohei YOSHIDA 2023-03-29 07:12:59 +09:00 committed by GitHub
commit 820aaba911
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 2 deletions

View File

@ -35,7 +35,7 @@
# ------- # -------
# #
# * Ian Ker-Seymer (https://github.com/ianks) # * Ian Ker-Seymer (https://github.com/ianks)
# # * notmike
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
_bitcoin-cli() { _bitcoin-cli() {
@ -43,12 +43,16 @@ _bitcoin-cli() {
_arguments -C \ _arguments -C \
-?'[This help message]' \ -?'[This help message]' \
-addrinfo'[Get the number of addresses known to the node, per network and total, after filtering for quality and recency. Total number of addresses known to the node may be higher.]' \
-chain='[Use the chain <chain> (default: main). Allowed values: main, test, signet, regtest]:chain:(main test signet regtest)' \
-color='[Color setting for CLI output (default: auto). Valid values: always, auto, never]:when:(always auto never)' \
-conf='[Specify configuration file. Relative paths will be prefixed by datadir location. (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.]' \ -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)]' \
-netinfo=-'[Get network peer connection information from the remote server.]::level_or_help:(0 1 2 3 4 help)' \
-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, testnet: 18332, regtest: 18443)]: :_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]' \
@ -56,6 +60,7 @@ _bitcoin-cli() {
-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, or 0 for no timeout. (default: 900)]: :_guard "[[\:digit\:]]#" "RPCCLIENTTIMEOUT"' \ -rpcclienttimeout='[Timeout during HTTP requests, or 0 for no timeout. (default: 900)]: :_guard "[[\:digit\:]]#" "RPCCLIENTTIMEOUT"' \
-version'[Print version and exit]' \
':subcommand:->subcommand' && ret=0 ':subcommand:->subcommand' && ret=0
case $state in case $state in
@ -66,11 +71,13 @@ _bitcoin-cli() {
'getblockchaininfo' 'getblockchaininfo'
'getblockcount' 'getblockcount'
'getblockfilter' 'getblockfilter'
'getblockfrompeer'
'getblockhash' 'getblockhash'
'getblockheader' 'getblockheader'
'getblockstats' 'getblockstats'
'getchaintips' 'getchaintips'
'getchaintxstats' 'getchaintxstats'
'getdeploymentinfo'
'getdifficulty' 'getdifficulty'
'getmempoolancestors' 'getmempoolancestors'
'getmempooldescendants' 'getmempooldescendants'
@ -80,6 +87,7 @@ _bitcoin-cli() {
'gettxout' 'gettxout'
'gettxoutproof' 'gettxoutproof'
'gettxoutsetinfo' 'gettxoutsetinfo'
'gettxspendingprevout'
'preciousblock' 'preciousblock'
'pruneblockchain' 'pruneblockchain'
'savemempool' 'savemempool'
@ -92,7 +100,6 @@ _bitcoin-cli() {
'logging' 'logging'
'stop' 'stop'
'uptime' 'uptime'
'generatetoaddress'
'getblocktemplate' 'getblocktemplate'
'getmininginfo' 'getmininginfo'
'getnetworkhashps' 'getnetworkhashps'
@ -129,6 +136,7 @@ _bitcoin-cli() {
'signrawtransactionwithkey' 'signrawtransactionwithkey'
'testmempoolaccept' 'testmempoolaccept'
'utxoupdatepsbt' 'utxoupdatepsbt'
'enumeratesigners'
'createmultisig' 'createmultisig'
'deriveaddresses' 'deriveaddresses'
'estimatesmartfee' 'estimatesmartfee'
@ -157,6 +165,7 @@ _bitcoin-cli() {
'getunconfirmedbalance' 'getunconfirmedbalance'
'getwalletinfo' 'getwalletinfo'
'importaddress' 'importaddress'
'importdescriptors'
'importmulti' 'importmulti'
'importprivkey' 'importprivkey'
'importprunedfunds' 'importprunedfunds'
@ -164,6 +173,7 @@ _bitcoin-cli() {
'importwallet' 'importwallet'
'keypoolrefill' 'keypoolrefill'
'listaddressgroupings' 'listaddressgroupings'
'listdescriptors'
'listlabels' 'listlabels'
'listlockunspent' 'listlockunspent'
'listreceivedbyaddress' 'listreceivedbyaddress'
@ -175,8 +185,14 @@ _bitcoin-cli() {
'listwallets' 'listwallets'
'loadwallet' 'loadwallet'
'lockunspent' 'lockunspent'
'migratewallet'
'newkeypool'
'psbtbumpfee'
'removeprunedfunds' 'removeprunedfunds'
'rescanblockchain' 'rescanblockchain'
'restorewallet'
'send'
'sendall'
'sendmany' 'sendmany'
'sendtoaddress' 'sendtoaddress'
'sethdseed' 'sethdseed'
@ -185,8 +201,11 @@ _bitcoin-cli() {
'setwalletflag' 'setwalletflag'
'signmessage' 'signmessage'
'signrawtransactionwithwallet' 'signrawtransactionwithwallet'
'simulaterawtransaction'
'unloadwallet' 'unloadwallet'
'upgradewallet'
'walletcreatefundedpsbt' 'walletcreatefundedpsbt'
'walletdisplayaddress'
'walletlock' 'walletlock'
'walletpassphrase' 'walletpassphrase'
'walletpassphrasechange' 'walletpassphrasechange'