mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 19:42:46 +01:00
43152b2b35
* compat: remove bswap_* check on macOS This was originally added in #9366 to fix the gui build, as Protobuf would also define these macros. Now that we're no-longer using Protobuf, remove the additional check. * build: skip building OpenSSL lib_ssl * build: remove OpenSSL from Qt build More info available from: https://doc.qt.io/qt-5/ssl.html#enabling-and-disabling-ssl-support * build: remove EVP_MD_CTX_new detection This was added in #9475 to fix LibreSSL compatibility for BIP70, so is no longer required. * build: remove SSL lib detection * gui: update BIP70 support message * build: remove BIP70 entries from macOS Info.plist * gui: remove payment request file handling from OpenURI dialog * gui: remove BIP70 Support * build: remove protobuf from depends and contrib
57 lines
1.5 KiB
Bash
57 lines
1.5 KiB
Bash
# bash programmable completion for dashd(1) and dash-qt(1)
|
|
# Copyright (c) 2012-2016 The Bitcoin Core developers
|
|
# Distributed under the MIT software license, see the accompanying
|
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
_dashd() {
|
|
local cur prev words=() cword
|
|
local dashd
|
|
|
|
# save and use original argument to invoke dashd for -help
|
|
# it might not be in $PATH
|
|
dashd="$1"
|
|
|
|
COMPREPLY=()
|
|
_get_comp_words_by_ref -n = cur prev words cword
|
|
|
|
case "$cur" in
|
|
-conf=*|-pid=*|-loadblock=*|-rpccookiefile=*|-wallet=*)
|
|
cur="${cur#*=}"
|
|
_filedir
|
|
return 0
|
|
;;
|
|
-datadir=*)
|
|
cur="${cur#*=}"
|
|
_filedir -d
|
|
return 0
|
|
;;
|
|
-*=*) # prevent nonsense completions
|
|
return 0
|
|
;;
|
|
*)
|
|
|
|
# only parse -help if sensible
|
|
if [[ -z "$cur" || "$cur" =~ ^- ]]; then
|
|
local helpopts
|
|
helpopts=$($dashd -help 2>&1 | awk '$1 ~ /^-/ { sub(/=.*/, "="); print $1 }' )
|
|
COMPREPLY=( $( compgen -W "$helpopts" -- "$cur" ) )
|
|
fi
|
|
|
|
# Prevent space if an argument is desired
|
|
if [[ $COMPREPLY == *= ]]; then
|
|
compopt -o nospace
|
|
fi
|
|
return 0
|
|
;;
|
|
esac
|
|
} &&
|
|
complete -F _dashd dashd dash-qt
|
|
|
|
# Local variables:
|
|
# mode: shell-script
|
|
# sh-basic-offset: 4
|
|
# sh-indent-comment: t
|
|
# indent-tabs-mode: nil
|
|
# End:
|
|
# ex: ts=4 sw=4 et filetype=sh
|