--- a/bash-completion.sh Mon Oct 26 00:00:35 2020 +0100
+++ b/bash-completion.sh Sun May 09 18:19:09 2021 +0200
@@ -33,6 +33,11 @@
"boolean"
)
+ BOOLEAN_VALUES=(
+ "true"
+ "false"
+ )
+
DATA_SOURCE_STRING=(
"Driver=SQLite3;Database=file::memory:"
"Driver=SQLite3;Database=file:temp-relpipe.sqlite"
@@ -43,6 +48,7 @@
elif [[ "$w2" == "--relation" && "x$w0" == "x" ]]; then COMPREPLY=('"SELECT * FROM "')
elif [[ "$w1" == "--type-cast" && "x$w0" == "x" ]]; then COMPREPLY=("''")
elif [[ "$w2" == "--type-cast" ]]; then COMPREPLY=($(compgen -W "${DATA_TYPE[*]}" -- "$w0"))
+ elif [[ "$w1" == "--list-data-sources" ]]; then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
elif [[ "$w1" == "--parameter" && "x$w0" == "x" ]]; then COMPREPLY=("''")
elif [[ "$w1" == "--copy" && "x$w0" == "x" ]]; then COMPREPLY=("'.+'")
elif [[ "$w1" == "--copy-renamed" && "x$w0" == "x" ]]; then COMPREPLY=("'.+'")