7Re. c @ sP d d l Z d d l m Z d Z i d d 6d d 6Z Gd d d e Z d S(
i N( u CommanduJ
# pip %(shell)s completion start%(script)s# pip %(shell)s completion end
uΟ
_pip_completion()
{
COMPREPLY=( $( COMP_WORDS="${COMP_WORDS[*]}" \
COMP_CWORD=$COMP_CWORD \
PIP_AUTO_COMPLETE=1 $1 ) )
}
complete -o default -F _pip_completion pip
u bashuρ
function _pip_completion {
local words cword
read -Ac words
read -cn cword
reply=( $( COMP_WORDS="$words[*]" \
COMP_CWORD=$(( cword-1 )) \
PIP_AUTO_COMPLETE=1 $words[1] ) )
}
compctl -K _pip_completion pip
u zshc sJ | Ee Z d Z d Z d Z d Z d Z f d d Z d d Z S( u CompletionCommandu3 A helper command to be used for command completion.u
completionu2 A helper command to be used for command completionc ss t t | j | | | j j d d d d d d d d d d
| j j d d d d d d
d d d d d S( Nu --bashu -bu actionu store_constu constu bashu destu shellu helpu Emit completion code for bashu --zshu -zu zshu Emit completion code for zsh( u superu CompletionCommandu __init__u parseru
add_option( u selfu argsu kw( u __class__( u0 /tmp/pip-zej_zi-build/pip/commands/completion.pyu __init__$ s u CompletionCommand.__init__c C s t j } d d t | D } | j | k rk t j | j d } t t i | d 6| j d 6 n t j j d d j
| d S( u- Prints the completion code of the given shellc S s g | ] } d | q S( u --( ( u .0u shell( ( u0 /tmp/pip-zej_zi-build/pip/commands/completion.pyu