# ronin-fuzzer completion -*- shell-script -*- # This bash completions script was generated by # completely (https://github.com/dannyben/completely) # Modifying it manually is not recommended _ronin-fuzzer_completions_filter() { local words="$1" 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 echo "${result[*]}" fi } _ronin-fuzzer_completions() { local cur=${COMP_WORDS[COMP_CWORD]} 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" ) ;; 'completion'*) 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" ) ;; '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 "help completion fuzz")" -- "$cur" ) ;; esac } && complete -F _ronin-fuzzer_completions ronin-fuzzer # ex: filetype=sh