scripts/bash_completion.pl
branchv_0
changeset 159 9632b23df30c
parent 110 ff6bbd0223c3
child 209 8dfe037b3274
equal deleted inserted replaced
158:770b5009ec42 159:9632b23df30c
    48 	COMPREPLY=()
    48 	COMPREPLY=()
    49 	cur=${COMP_WORDS[COMP_CWORD]}
    49 	cur=${COMP_WORDS[COMP_CWORD]}
    50 	prev=${COMP_WORDS[COMP_CWORD-1]}
    50 	prev=${COMP_WORDS[COMP_CWORD-1]}
    51 
    51 
    52 	case "$prev" in
    52 	case "$prev" in
    53 	--db | --test-connection)
    53 	--db | --test-connection | --list-jdbc-properties)
    54 		if [ -f '.$databasesFile.' ]; then
    54 		if [ -f '.$databasesFile.' ]; then
    55 			COMPREPLY=( $( compgen -W " $( cat '.$databasesFile.' ) " -- $cur ) )
    55 			COMPREPLY=( $( compgen -W " $( cat '.$databasesFile.' ) " -- $cur ) )
    56 			return 0
    56 			return 0
    57 		fi
    57 		fi
    58 		;;
    58 		;;