equal
deleted
inserted
replaced
20 w0=${COMP_WORDS[COMP_CWORD]} |
20 w0=${COMP_WORDS[COMP_CWORD]} |
21 w1=${COMP_WORDS[COMP_CWORD-1]} |
21 w1=${COMP_WORDS[COMP_CWORD-1]} |
22 w2=${COMP_WORDS[COMP_CWORD-2]} |
22 w2=${COMP_WORDS[COMP_CWORD-2]} |
23 w3=${COMP_WORDS[COMP_CWORD-3]} |
23 w3=${COMP_WORDS[COMP_CWORD-3]} |
24 |
24 |
25 if [[ "$w1" == "--endpoint-url" && "x$w0" == "x" ]]; then COMPREPLY=("'tcp://localhost:1234'") |
25 if [[ "$w1" == "--connection-string" && "x$w0" == "x" ]]; then COMPREPLY=("'tcp://localhost:1234'") |
26 else |
26 else |
27 OPTIONS=( |
27 OPTIONS=( |
28 "--endpoint-url" |
28 "--connection-string" |
29 ) |
29 ) |
30 COMPREPLY=($(compgen -W "${OPTIONS[*]}" -- "$w0")) |
30 COMPREPLY=($(compgen -W "${OPTIONS[*]}" -- "$w0")) |
31 fi |
31 fi |
32 } |
32 } |
33 |
33 |