You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* separate completion for bitcoind and bitcoin-cli
* remove RPC support from bitcoind completion
* add completion for bitcoin-tx and bitcoin-qt
* rely on autoloading of completions
# Copyright (c) 2012-2016 The Bitcoin Core developers
3
+
# Distributed under the MIT software license, see the accompanying
4
+
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
+
6
+
# call $bitcoin-cli for RPC
7
+
_bitcoin_rpc() {
8
+
# determine already specified args necessary for RPC
# Distributed under the MIT software license, see the accompanying
4
+
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
+
6
+
_bitcoin_tx() {
7
+
local cur prev words=() cword
8
+
local bitcoin_tx
9
+
10
+
# save and use original argument to invoke bitcoin-tx for -help
11
+
# it might not be in $PATH
12
+
bitcoin_tx="$1"
13
+
14
+
COMPREPLY=()
15
+
_get_comp_words_by_ref -n =: cur prev words cword
16
+
17
+
case"$cur"in
18
+
load=*:*)
19
+
cur="${cur#load=*:}"
20
+
_filedir
21
+
return 0
22
+
;;
23
+
*=*) # prevent attempts to complete other arguments
# bash programmable completion for bitcoind(1) and bitcoin-qt(1)
2
+
# Copyright (c) 2012-2016 The Bitcoin Core developers
3
3
# Distributed under the MIT software license, see the accompanying
4
4
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
5
6
-
have bitcoind && {
7
-
8
-
# call $bitcoind for RPC
9
-
_bitcoin_rpc() {
10
-
# determine already specified args necessary for RPC
0 commit comments