bash-completion.sh
branchv_0
changeset 47 428c278af4be
parent 37 3de41719d7eb
child 54 bc6e11cccdf4
--- a/bash-completion.sh	Thu Jun 04 00:03:37 2020 +0200
+++ b/bash-completion.sh	Thu Jun 04 00:46:00 2020 +0200
@@ -33,7 +33,7 @@
 		"boolean"
 	)
 
-	DATA_SOURCE_URL=(
+	DATA_SOURCE_STRING=(
 		"Driver=SQLite3;Database=file::memory:"
 		"Driver=SQLite3;Database=file:temp-relpipe.sqlite"
 		"Driver=SQLite3;Database=file:/tmp/relpipe.sqlite"
@@ -48,7 +48,7 @@
 	elif [[ "$w1" == "--copy-renamed"  && "x$w0" == "x" ]];    then COMPREPLY=("'.+'")
 	elif [[ "$w2" == "--copy-renamed"  && "x$w0" == "x" ]];    then COMPREPLY=("'copy_of_\$0'")
 	elif [[ "$w1" == "--data-source-name"               ]];    then COMPREPLY=($(compgen -W "$(_relpipe_tr_sql_completion_dsn)" -- "$w0"))
-	elif [[ "$w1" == "--data-source-url"                ]];    then COMPREPLY=($(compgen -W "${DATA_SOURCE_URL[*]}" -- "$w0"))
+	elif [[ "$w1" == "--data-source-string"             ]];    then COMPREPLY=($(compgen -W "${DATA_SOURCE_STRING[*]}" -- "$w0"))
 	else
 		OPTIONS=(
 			"--relation"
@@ -58,7 +58,7 @@
 			"--copy-renamed"
 			"--list-data-sources"
 			"--data-source-name"
-			"--data-source-url"
+			"--data-source-string"
 		)
 		COMPREPLY=($(compgen -W "${OPTIONS[*]}" -- "$w0"))
 	fi