This commit is contained in:
罗泽轩 2018-04-17 20:49:48 +00:00 committed by GitHub
commit 81bcc17540
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,10 @@ local curcontext=$curcontext state line
declare -A opt_args
declare target_list
target_list=(`fab --shortlist 2>/dev/null`)
IFS="$(printf '\n+')" target_list=($(fab -l | awk '{
if(NR > 2)
printf "%s:%s\n", $1, substr($0, index($0, $2))
}' 2>/dev/null))
_targets() {
_describe -t commands "fabric targets" target_list