data/completions/ronin-fuzzer in ronin-fuzzer-0.2.0.rc1 vs data/completions/ronin-fuzzer in ronin-fuzzer-0.2.0
- old
+ new
@@ -9,11 +9,11 @@
local cur=${COMP_WORDS[COMP_CWORD]}
local result=()
if [[ "${cur:0:1}" == "-" ]]; then
echo "$words"
-
+
else
for word in $words; do
[[ "${word:0:1}" != "-" ]] && result+=("$word")
done
@@ -27,29 +27,29 @@
local compwords=("${COMP_WORDS[@]:1:$COMP_CWORD-1}")
local compline="${compwords[*]}"
case "$compline" in
'fuzz'*'--input')
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -- "$cur" )
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -- "$cur")
;;
'completion'*)
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_ronin-fuzzer_completions_filter "--print --install --uninstall")" -- "$cur" )
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-fuzzer_completions_filter "--print --install --uninstall")" -- "$cur")
;;
'fuzz'*'-i')
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -- "$cur" )
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -- "$cur")
;;
'fuzz'*)
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_ronin-fuzzer_completions_filter "--input -i --rules -r --output -o --command -c --tcp -t --udp -u --pause -p")" -- "$cur" )
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-fuzzer_completions_filter "--input -i --rules -r --output -o --command -c --tcp -t --udp -u --pause -p")" -- "$cur")
;;
*)
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_ronin-fuzzer_completions_filter "help completion fuzz")" -- "$cur" )
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-fuzzer_completions_filter "--version -V help completion fuzz")" -- "$cur")
;;
esac
} &&
-complete -F _ronin-fuzzer_completions ronin-fuzzer
+ complete -F _ronin-fuzzer_completions ronin-fuzzer
# ex: filetype=sh