Converted tabs to spaces.

This commit is contained in:
Jakub Roztocil 2015-06-26 16:25:53 +02:00
parent d8b819b03f
commit ced0838598

View File

@ -1,22 +1,23 @@
#!/bin/env bash #!/usr/bin/env bash
_http_complete() { _http_complete() {
local cur_word=${COMP_WORDS[COMP_CWORD]} local cur_word=${COMP_WORDS[COMP_CWORD]}
local prev_word=${COMP_WORDS[COMP_CWORD - 1]} local prev_word=${COMP_WORDS[COMP_CWORD - 1]}
if [[ "$cur_word" == -* ]]; then if [[ "$cur_word" == -* ]]; then
_http_complete_options "$cur_word" _http_complete_options "$cur_word"
fi fi
} }
complete -o default -F _http_complete http complete -o default -F _http_complete http
_http_complete_options() { _http_complete_options() {
local cur_word=$1 local cur_word=$1
local options="-j --json -f --form --pretty -s --style -p --print local options="-j --json -f --form --pretty -s --style -p --print
-v --verbose -h --headers -b --body -S --stream -o --output -d --download -v --verbose -h --headers -b --body -S --stream -o --output -d --download
-c --continue --session --session-read-only -a --auth --auth-type --proxy -c --continue --session --session-read-only -a --auth --auth-type --proxy
--follow --verify --cert --cert-key --timeout --check-status --ignore-stdin --follow --verify --cert --cert-key --timeout --check-status --ignore-stdin
--help --version --traceback --debug" --help --version --traceback --debug"
COMPREPLY=( $( compgen -W "$options" -- "$cur_word" ) ) COMPREPLY=( $( compgen -W "$options" -- "$cur_word" ) )
} }