diff options
| author | vitaminmoo <[email protected]> | 2014-01-27 10:04:06 -0800 |
|---|---|---|
| committer | J Ross Nicoll <[email protected]> | 2015-10-31 14:49:41 +0000 |
| commit | 00d9b485a707fa99bf50410a6fd5ad4ad6b00e79 (patch) | |
| tree | 6820e4b78b04a08140202785f9c6e4ed5070b0e9 /contrib/bitcoind.bash-completion | |
| parent | Removed very old Bitcoin release notes as of minimal value in the context of ... (diff) | |
| download | discoin-00d9b485a707fa99bf50410a6fd5ad4ad6b00e79.tar.xz discoin-00d9b485a707fa99bf50410a6fd5ad4ad6b00e79.zip | |
Replace bitcoin with dogecoin in debian files.
Diffstat (limited to 'contrib/bitcoind.bash-completion')
| -rw-r--r-- | contrib/bitcoind.bash-completion | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/contrib/bitcoind.bash-completion b/contrib/bitcoind.bash-completion index 3cc959c0a..1fb740e8d 100644 --- a/contrib/bitcoind.bash-completion +++ b/contrib/bitcoind.bash-completion @@ -1,12 +1,12 @@ -# bash programmable completion for bitcoind(1) and bitcoin-cli(1) +# bash programmable completion for dogecoind(1) and dogecoin-cli(1) # Copyright (c) 2012,2014 Christian von Roques <[email protected]> # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. -have bitcoind && { +have dogecoind && { -# call $bitcoind for RPC -_bitcoin_rpc() { +# call $dogecoind for RPC +_dogecoin_rpc() { # determine already specified args necessary for RPC local rpcargs=() for i in ${COMP_LINE}; do @@ -16,23 +16,23 @@ _bitcoin_rpc() { ;; esac done - $bitcoind "${rpcargs[@]}" "$@" + $dogecoind "${rpcargs[@]}" "$@" } -# Add bitcoin accounts to COMPREPLY -_bitcoin_accounts() { +# Add dogecoin accounts to COMPREPLY +_dogecoin_accounts() { local accounts - accounts=$(_bitcoin_rpc listaccounts | awk '/".*"/ { a=$1; gsub(/"/, "", a); print a}') + accounts=$(_dogecoin_rpc listaccounts | awk '/".*"/ { a=$1; gsub(/"/, "", a); print a}') COMPREPLY=( "${COMPREPLY[@]}" $( compgen -W "$accounts" -- "$cur" ) ) } -_bitcoind() { +_dogecoind() { local cur prev words=() cword - local bitcoind + local dogecoind - # save and use original argument to invoke bitcoind - # bitcoind might not be in $PATH - bitcoind="$1" + # save and use original argument to invoke dogecoind + # dogecoind might not be in $PATH + dogecoind="$1" COMPREPLY=() _get_comp_words_by_ref -n = cur prev words cword @@ -74,7 +74,7 @@ _bitcoind() { return 0 ;; move|setaccount) - _bitcoin_accounts + _dogecoin_accounts return 0 ;; esac @@ -90,7 +90,7 @@ _bitcoind() { return 0 ;; getaccountaddress|getaddressesbyaccount|getbalance|getnewaddress|getreceivedbyaccount|listtransactions|move|sendfrom|sendmany) - _bitcoin_accounts + _dogecoin_accounts return 0 ;; esac @@ -114,12 +114,12 @@ _bitcoind() { # only parse --help if senseful if [[ -z "$cur" || "$cur" =~ ^- ]]; then - helpopts=$($bitcoind --help 2>&1 | awk '$1 ~ /^-/ { sub(/=.*/, "="); print $1 }' ) + helpopts=$($dogecoind --help 2>&1 | awk '$1 ~ /^-/ { sub(/=.*/, "="); print $1 }' ) fi # only parse help if senseful if [[ -z "$cur" || "$cur" =~ ^[a-z] ]]; then - commands=$(_bitcoin_rpc help 2>/dev/null | awk '$1 ~ /^[a-z]/ { print $1; }') + commands=$(_dogecoin_rpc help 2>/dev/null | awk '$1 ~ /^[a-z]/ { print $1; }') fi COMPREPLY=( $( compgen -W "$helpopts $commands" -- "$cur" ) ) @@ -133,7 +133,7 @@ _bitcoind() { esac } -complete -F _bitcoind bitcoind bitcoin-cli +complete -F _dogecoind dogecoind dogecoin-cli } # Local variables: |