--- a/bash-completion.sh Sat Aug 06 12:12:46 2022 +0200
+++ b/bash-completion.sh Sat Aug 06 15:23:40 2022 +0200
@@ -36,6 +36,7 @@
"host"
"port"
"path"
+ "delay"
)
PROTOCOLS=(
@@ -55,6 +56,13 @@
"datagram"
)
+ DELAYS=(
+ "100"
+ "200"
+ "400"
+ "800"
+ )
+
if [[ "$w1" == "--relation" && "x$w0" == "x" ]]; then COMPREPLY=("''")
elif [[ "$w1" == "--connection-string" ]]; then COMPREPLY=($(compgen -W "${CONNECTION_STRINGS[*]}" -- "$w0"))
elif [[ "$w1" == "--connection-option" ]]; then COMPREPLY=($(compgen -W "${OPTIONS[*]}" -- "$w0"))
@@ -62,6 +70,7 @@
elif [[ "$w2" == "--connection-option" && "$w1" == "role" ]]; then COMPREPLY=($(compgen -W "${ROLES[*]}" -- "$w0"))
elif [[ "$w2" == "--connection-option" && "$w1" == "mode" ]]; then COMPREPLY=($(compgen -W "${MODES[*]}" -- "$w0"))
elif [[ "$w2" == "--connection-option" && "$w1" == "path" ]]; then COMPREPLY=($(compgen -f -- "$w0"))
+ elif [[ "$w2" == "--connection-option" && "$w1" == "delay" ]]; then COMPREPLY=($(compgen -W "${DELAYS[*]}" -- "$w0"))
else
OPTIONS=(
"--relation"