equal
deleted
inserted
replaced
38 DIALECTS=( |
38 DIALECTS=( |
39 "java-properties" |
39 "java-properties" |
40 "java-manifest-mf" |
40 "java-manifest-mf" |
41 ); |
41 ); |
42 |
42 |
|
43 QUOTING_TYPES=( |
|
44 "none" |
|
45 "apostrophes" |
|
46 "quotes" |
|
47 ) |
|
48 |
43 WRITER_OPTIONS=( |
49 WRITER_OPTIONS=( |
44 "dialect" |
50 "dialect" |
45 "comment-separator-for-sections" |
51 "comment-separator-for-sections" |
46 "comment-separator-for-entries" |
52 "comment-separator-for-entries" |
47 "comment-separator-standalone" |
53 "comment-separator-standalone" |
48 "key-value-separator" |
54 "key-value-separator" |
49 "escape-backspace" |
55 "escape-backspace" |
50 "escape-basic" |
56 "escape-basic" |
51 "escape-java-properties" |
57 "escape-java-properties" |
|
58 "quotes-type-for-sections" |
|
59 "quotes-type-for-keys" |
|
60 "quotes-type-for-values" |
|
61 "quotes-pattern-for-sections" |
|
62 "quotes-pattern-for-keys" |
|
63 "quotes-pattern-for-values" |
52 ); |
64 ); |
53 |
65 |
54 |
66 |
55 if [[ "$w1" == "--relation" && "x$w0" == "x" ]]; then COMPREPLY=("''") |
67 if [[ "$w1" == "--relation" && "x$w0" == "x" ]]; then COMPREPLY=("''") |
56 elif [[ "$w1" == "--style" ]]; then COMPREPLY=($(compgen -W "${STYLES[*]}" -- "$w0")) |
68 elif [[ "$w1" == "--style" ]]; then COMPREPLY=($(compgen -W "${STYLES[*]}" -- "$w0")) |
61 elif [[ "$w2" == "--writer-option" && "$w1" == "comment-separator-standalone" ]]; then COMPREPLY=("'; '") |
73 elif [[ "$w2" == "--writer-option" && "$w1" == "comment-separator-standalone" ]]; then COMPREPLY=("'; '") |
62 elif [[ "$w2" == "--writer-option" && "$w1" == "key-value-separator" ]]; then COMPREPLY=("' = '") |
74 elif [[ "$w2" == "--writer-option" && "$w1" == "key-value-separator" ]]; then COMPREPLY=("' = '") |
63 elif [[ "$w2" == "--writer-option" && "$w1" == "escape-backspace" ]]; then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0")) |
75 elif [[ "$w2" == "--writer-option" && "$w1" == "escape-backspace" ]]; then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0")) |
64 elif [[ "$w2" == "--writer-option" && "$w1" == "escape-basic" ]]; then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0")) |
76 elif [[ "$w2" == "--writer-option" && "$w1" == "escape-basic" ]]; then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0")) |
65 elif [[ "$w2" == "--writer-option" && "$w1" == "escape-java-properties" ]]; then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0")) |
77 elif [[ "$w2" == "--writer-option" && "$w1" == "escape-java-properties" ]]; then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0")) |
|
78 elif [[ "$w2" == "--writer-option" && "$w1" == "quotes-type-for-sections" ]]; then COMPREPLY=($(compgen -W "${QUOTING_TYPES[*]}" -- "$w0")) |
|
79 elif [[ "$w2" == "--writer-option" && "$w1" == "quotes-type-for-keys" ]]; then COMPREPLY=($(compgen -W "${QUOTING_TYPES[*]}" -- "$w0")) |
|
80 elif [[ "$w2" == "--writer-option" && "$w1" == "quotes-type-for-values" ]]; then COMPREPLY=($(compgen -W "${QUOTING_TYPES[*]}" -- "$w0")) |
66 elif [[ "$w2" == "--writer-option" && "x$w0" == "x" ]]; then COMPREPLY=("''") |
81 elif [[ "$w2" == "--writer-option" && "x$w0" == "x" ]]; then COMPREPLY=("''") |
67 |
82 |
68 else |
83 else |
69 OPTIONS=( |
84 OPTIONS=( |
70 "--writer-option" |
85 "--writer-option" |