î œ0{Y.ã@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 completionTc sstt|ƒj||Ž|jjddddddddd d ƒ|jjd d 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-ok8sy_ze-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)Ú.0r rrrú 6s z)CompletionCommand.run..ÚÚscriptr zERROR: 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Ús