--- a/bash-completion.sh Tue Mar 30 20:26:08 2021 +0200
+++ b/bash-completion.sh Thu Apr 01 17:54:46 2021 +0200
@@ -22,15 +22,17 @@
w2=${COMP_WORDS[COMP_CWORD-2]}
w3=${COMP_WORDS[COMP_CWORD-3]}
- WRITE_HEADER=(
+ BOOLEAN_VALUES=(
"true"
"false"
)
- if [[ "$w1" == "--TODO" ]]; then COMPREPLY=($(compgen -W "${WRITE_HEADER[*]}" -- "$w0"))
+ if [[ "$w1" == "--debug" ]]; then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
+ elif [[ "$w1" == "--dry-run" ]]; then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
else
OPTIONS=(
- "--TODO"
+ "--debug"
+ "--dry-run"
)
COMPREPLY=($(compgen -W "${OPTIONS[*]}" -- "$w0"))
fi