AlkantarClanX12

Your IP : 18.117.71.239


Current Path : /opt/alt/python34/lib/python3.4/site-packages/pip/commands/__pycache__/
Upload File :
Current File : //opt/alt/python34/lib/python3.4/site-packages/pip/commands/__pycache__/completion.cpython-34.pyc

�
�Re.�@sPddlZddlmZdZidd6dd6ZGdd	�d	e�ZdS)
�N)�CommandzJ
# pip %(shell)s completion start%(script)s# pip %(shell)s completion end
z�
_pip_completion()
{
    COMPREPLY=( $( COMP_WORDS="${COMP_WORDS[*]}" \
                   COMP_CWORD=$COMP_CWORD \
                   PIP_AUTO_COMPLETE=1 $1 ) )
}
complete -o default -F _pip_completion pip
�bashz�
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
�zshcsFeZdZdZdZdZdZ�fdd�Zdd�Z�S)	�CompletionCommandz3A helper command to be used for command completion.�
completionz2A helper command to be used for command completionTcsstt|�j||�|jjddddddddd	d
�|jjdddddd
ddd	d�dS)Nz--bashz-b�action�store_const�constr�dest�shell�helpzEmit completion code for bashz--zshz-zrzEmit completion code for zsh)�superr�__init__�parser�
add_option)�self�args�kw)�	__class__��2/tmp/pip-ztkk0jow-build/pip/commands/completion.pyr$s				zCompletionCommand.__init__cCs�tj�}dd�t|�D�}|j|krktj|jd�}tti|d6|jd6�ntjj	ddj
|��dS)	z-Prints the completion code of the given shellcSsg|]}d|�qS)z--r)�.0rrrr�
<listcomp>6s	z)CompletionCommand.run.<locals>.<listcomp>��scriptrzERROR: You must pass %s
z or N)�COMPLETION_SCRIPTS�keys�sortedr�get�print�BASE_COMPLETION�sys�stderr�write�join)r�optionsr�shells�
shell_optionsrrrr�run3s"zCompletionCommand.run)	�__name__�
__module__�__qualname__�__doc__�name�summary�hiddenrr(rr)rrrsr)r!�pip.basecommandrr rrrrrr�<module>s