sh_list_block_devices() {
	lsblk \
		--noempty \
		--output "NAME,SIZE,TYPE,FSTYPE,LABEL,MOUNTPOINTS"
}

sh_not() {
	case "${1}" in
	"false") echo "true" ;;
	"true") echo "false" ;;
	*) ;;
	esac
}

sh_read_passphrase() {
	sh_read_secret "PassPhrase: "
}

sh_read_secret() {
	local prompt="${1}"
	local secret
	printf "%s" "${prompt}" 1>&2
	stty -echo
	read -r secret
	stty echo
	echo >&2
	echo "${secret}"
	unset secret
}

sh_warn_wipe() {
	local tmp
	sh_list_block_devices
	printf "%s" "WIPE ${*} /?\\ OR CANCEL /!\\"
	read -r tmp
	sh_log_trace "${tmp}"
}