Sha256: 51364b2bcafeaa5505af3453f74ec58f7faa26d6d258a6a0c4ffa153abe8f673
Contents?: true
Size: 1.55 KB
Versions: 1
Compression:
Stored size: 1.55 KB
Contents
# 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ronin-fuzzer-0.2.0.rc1 | data/completions/ronin-fuzzer |