Lines Matching refs:cur
27 local where i cur serial
33 cur="${COMP_WORDS[i]}"
34 case "${cur}" in
47 serial=${cur}
67 COMPREPLY=( $(compgen -W "$OPTIONS $COMMAND" -- "$cur") )
71 COMPREPLY=( $(compgen -W "${devices}" -- ${cur}) )
75 COMPREPLY=( $(compgen -W "${slots}" -- ${cur}) )
79 COMPREPLY=( $(compgen -W "$COMMAND" -- "$cur") )
82 case "${cur}" in
104 local serial i cur
110 cur="${COMP_WORDS[COMP_CWORD]}"
113 COMPREPLY=( $(compgen -W "$partitions" -- $cur) )
115 _fastboot_util_complete_local_file "${cur}" '!*.img'
120 local serial i cur
125 cur="${COMP_WORDS[COMP_CWORD]}"
127 _fastboot_util_complete_local_file "${cur}" '!*.zip'
141 COMPREPLY=( ${COMPREPLY[@]:-} $(compgen -f -- "${cur}") )
144 COMPREPLY=( ${COMPREPLY[@]:-} $(compgen -f -X "${xspec}" -- "${cur}") )
149 dirs=( $(compgen -d -- "${cur}" ) )
152 files=( ${COMPREPLY[@]:-} $(compgen -f -- "${cur}") )
154 files=( ${COMPREPLY[@]:-} $(compgen -f -X "${xspec}" -- "${cur}") )