equal
deleted
inserted
replaced
26 "string" |
26 "string" |
27 "integer" |
27 "integer" |
28 "boolean" |
28 "boolean" |
29 ) |
29 ) |
30 |
30 |
|
31 READ_TYPES=( |
|
32 "auto" |
|
33 "true" |
|
34 "false" |
|
35 ) |
|
36 |
31 if [[ "$w1" == "--relation" && "x$w0" == "x" ]]; then COMPREPLY=("''") |
37 if [[ "$w1" == "--relation" && "x$w0" == "x" ]]; then COMPREPLY=("''") |
32 elif [[ "$w1" == "--attribute" && "x$w0" == "x" ]]; then COMPREPLY=("''") |
38 elif [[ "$w1" == "--attribute" && "x$w0" == "x" ]]; then COMPREPLY=("''") |
33 elif [[ "$w2" == "--attribute" ]]; then COMPREPLY=($(compgen -W "${DATA_TYPE[*]}" -- "$w0")) |
39 elif [[ "$w2" == "--attribute" ]]; then COMPREPLY=($(compgen -W "${DATA_TYPE[*]}" -- "$w0")) |
|
40 elif [[ "$w1" == "--read-types" ]]; then COMPREPLY=($(compgen -W "${READ_TYPES[*]}" -- "$w0")) |
34 else |
41 else |
35 OPTIONS=( |
42 OPTIONS=( |
36 "--relation" |
43 "--relation" |
37 "--attribute" |
44 "--attribute" |
|
45 "--read-types" |
38 ) |
46 ) |
39 COMPREPLY=($(compgen -W "${OPTIONS[*]}" -- "$w0")) |
47 COMPREPLY=($(compgen -W "${OPTIONS[*]}" -- "$w0")) |
40 fi |
48 fi |
41 } |
49 } |
42 |
50 |