ó BuÆ_c@@sÌddlmZddlZddlZddlmZddlmZddlm Z ddl m Z e r‘ddl m Z ddlmZnd Zid d 6d d 6dd6Zdefd„ƒYZdS(i(tabsolute_importN(tCommand(tSUCCESS(tget_prog(tMYPY_CHECK_RUNNING(tList(tValuessD # pip {shell} completion start{script}# pip {shell} completion end s _pip_completion() {{ COMPREPLY=( $( COMP_WORDS="${{COMP_WORDS[*]}}" \ COMP_CWORD=$COMP_CWORD \ PIP_AUTO_COMPLETE=1 $1 2>/dev/null ) ) }} complete -o default -F _pip_completion {prog} tbashsM 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] 2>/dev/null )) }} compctl -K _pip_completion {prog} tzshsu function __fish_complete_pip set -lx COMP_WORDS (commandline -o) "" set -lx COMP_CWORD ( \ math (contains -i -- (commandline -t) $COMP_WORDS)-1 \ ) set -lx PIP_AUTO_COMPLETE 1 string split \ -- (eval $COMP_WORDS[1]) end complete -fa "(__fish_complete_pip)" -c {prog} tfishtCompletionCommandcB@s&eZdZeZd„Zd„ZRS(s3A helper command to be used for command completion.c C@s›|jjddddddddd d ƒ|jjd d dddd ddd dƒ|jjddddddddd dƒ|jjd|jƒdS(Ns--bashs-btactiont store_consttconstRtdesttshellthelpsEmit completion code for bashs--zshs-zRsEmit completion code for zshs--fishs-fR sEmit completion code for fishi(tcmd_optst add_optiontparsertinsert_option_group(tself((sR/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/commands/completion.pyt add_options;s&      cC@s³tjƒ}gt|ƒD]}d|^q}|j|kr‰tjtj|jdƒjdtƒƒƒ}t jd|d|jƒGHt St j j djdj|ƒƒƒt SdS( s-Prints the completion code of the given shells--ttprogtscriptRsERROR: You must pass {} s or N(tCOMPLETION_SCRIPTStkeystsortedRttextwraptdedenttgettformatRtBASE_COMPLETIONRtsyststderrtwritetjoin(RtoptionstargstshellsRt shell_optionsR((sR/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/commands/completion.pytrunRs # (t__name__t __module__t__doc__tTruetignore_require_venvRR*(((sR/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/commands/completion.pyR 6s (t __future__RR"Rtpip._internal.cli.base_commandRtpip._internal.cli.status_codesRtpip._internal.utils.miscRtpip._internal.utils.typingRttypingRtoptparseRR!RR (((sR/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/commands/completion.pyts