Disable SC2207 to keep COMPREPLY simple
parent
b92f53ece5
commit
f86d823dc3
|
|
@ -225,17 +225,15 @@ _atomic_completion() {
|
||||||
actions="show hide"
|
actions="show hide"
|
||||||
segments="battery clock exitcode python ruby scm sudo todo"
|
segments="battery clock exitcode python ruby scm sudo todo"
|
||||||
case "${_action}" in
|
case "${_action}" in
|
||||||
show)
|
show | hide)
|
||||||
while IFS='' read -r line; do COMPREPLY+=("$line"); done < <(compgen -W "${segments}" -- "${cur}")
|
# shellcheck disable=SC2207
|
||||||
return 0
|
COMPREPLY=($(compgen -W "${segments}" -- "${cur}"))
|
||||||
;;
|
|
||||||
hide)
|
|
||||||
while IFS='' read -r line; do COMPREPLY+=("$line"); done < <(compgen -W "${segments}" -- "${cur}")
|
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
while IFS='' read -r line; do COMPREPLY+=("$line"); done < <(compgen -W "${actions}" -- "${cur}")
|
# shellcheck disable=SC2207
|
||||||
|
COMPREPLY=($(compgen -W "${actions}" -- "${cur}"))
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -207,16 +207,15 @@ _brainy_completion() {
|
||||||
actions="show hide"
|
actions="show hide"
|
||||||
segments="battery clock exitcode python ruby scm sudo todo"
|
segments="battery clock exitcode python ruby scm sudo todo"
|
||||||
case "${_action}" in
|
case "${_action}" in
|
||||||
show)
|
show | hide)
|
||||||
while IFS='' read -r line; do COMPREPLY+=("$line"); done < <(compgen -W "${segments}" -- "${cur}")
|
# shellcheck disable=SC2207
|
||||||
return 0
|
COMPREPLY=($(compgen -W "${segments}" -- "${cur}"))
|
||||||
;;
|
|
||||||
hide)
|
|
||||||
while IFS='' read -r line; do COMPREPLY+=("$line"); done < <(compgen -W "${segments}" -- "${cur}")
|
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
while IFS='' read -r line; do COMPREPLY+=("$line"); done < <(compgen -W "${actions}" -- "${cur}")
|
|
||||||
|
# shellcheck disable=SC2207
|
||||||
|
COMPREPLY=($(compgen -W "${actions}" -- "${cur}"))
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue