diff -r a4907b207f0c -r a1775ba6d056 bash-completion.sh --- a/bash-completion.sh Sat Apr 23 18:49:25 2022 +0200 +++ b/bash-completion.sh Sun Aug 28 18:03:13 2022 +0200 @@ -38,6 +38,16 @@ "false" ) + ON_DUPLICATE_RELATION=( + "fail" + "insert" + # "extend" + # "drop" + # "skip" + # "rename-new" + # "rename-old" + ) + DATA_SOURCE_STRING=( "Driver=SQLite3;Database=file::memory:" "Driver=SQLite3;Database=file:temp-relpipe.sqlite" @@ -50,6 +60,7 @@ 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" == "--on-duplicate-relation" ]]; then COMPREPLY=($(compgen -W "${ON_DUPLICATE_RELATION[*]}" -- "$w0")) elif [[ "$w1" == "--copy" && "x$w0" == "x" ]]; then COMPREPLY=("'.+'") elif [[ "$w1" == "--copy-renamed" && "x$w0" == "x" ]]; then COMPREPLY=("'.+'") elif [[ "$w2" == "--copy-renamed" && "x$w0" == "x" ]]; then COMPREPLY=("'copy_of_\$0'") @@ -60,6 +71,7 @@ "--relation" "--type-cast" "--parameter" + "--on-duplicate-relation" "--copy" "--copy-renamed" "--list-data-sources"