https://t.me/AnonymousX5
Server : Apache
System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64
User : njnconst ( 1116)
PHP Version : 8.4.18
Disable Function : NONE
Directory :  /proc/self/root/usr/lib/python2.7/site-packages/click/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/usr/lib/python2.7/site-packages/click/_bashcomplete.pyc
�
./�_c@sjddlZddlZddlZddlmZddlmZddlmZddlmZddl	m
Z
ddlmZydd	l
mZWnek
r�ddl
ZnXd
ZdZdZd
Zied6ed6ed6Zejd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z d�Z!d�Z"dS(i����Ni(tArgument(tMultiCommand(tOption(tsplit_arg_string(tChoice(techo(tabct=s�
%(complete_func)s() {
    local IFS=$'
'
    COMPREPLY=( $( env COMP_WORDS="${COMP_WORDS[*]}" \
                   COMP_CWORD=$COMP_CWORD \
                   %(autocomplete_var)s=complete $1 ) )
    return 0
}

%(complete_func)setup() {
    local COMPLETION_OPTIONS=""
    local BASH_VERSION_ARR=(${BASH_VERSION//./ })
    # Only BASH version 4.4 and later have the nosort option.
    if [ ${BASH_VERSION_ARR[0]} -gt 4 ] || ([ ${BASH_VERSION_ARR[0]} -eq 4 ] && [ ${BASH_VERSION_ARR[1]} -ge 4 ]); then
        COMPLETION_OPTIONS="-o nosort"
    fi

    complete $COMPLETION_OPTIONS -F %(complete_func)s %(script_names)s
}

%(complete_func)setup
s�
#compdef %(script_names)s

%(complete_func)s() {
    local -a completions
    local -a completions_with_descriptions
    local -a response
    (( ! $+commands[%(script_names)s] )) && return 1

    response=("${(@f)$( env COMP_WORDS="${words[*]}" \
                        COMP_CWORD=$((CURRENT-1)) \
                        %(autocomplete_var)s="complete_zsh" \
                        %(script_names)s )}")

    for key descr in ${(kv)response}; do
      if [[ "$descr" == "_" ]]; then
          completions+=("$key")
      else
          completions_with_descriptions+=("$key":"$descr")
      fi
    done

    if [ -n "$completions_with_descriptions" ]; then
        _describe -V unsorted completions_with_descriptions -U
    fi

    if [ -n "$completions" ]; then
        compadd -U -V unsorted -a completions
    fi
    compstate[insert]="automenu"
}

compdef %(complete_func)s %(script_names)s
s�complete --no-files --command %(script_names)s --arguments "(env %(autocomplete_var)s=complete_fish COMP_WORDS=(commandline -cp) COMP_CWORD=(commandline -t) %(script_names)s)"tbashtzshtfishs
[^a-zA-Z0-9_]cCs`tjd|jdd��}tj|t�}|idj|�d6|d6|d6j�dS(	Ntt-t_s_{}_completiont
complete_functscript_namestautocomplete_vart;(t_invalid_ident_char_retsubtreplacet_completion_scriptstgettCOMPLETION_SCRIPT_BASHtformattstrip(t	prog_nametcomplete_vartshelltcf_nametscript((s4/tmp/pip-install-sTXtzD/click/click/_bashcomplete.pytget_completion_script_scCs>|j||dt�}|j|j}x|r9t|jt�r5|jjs�|jj||�\}}}|dkr}|S|j||d|dt�}|j|j}q6xk|r|jj||�\}}}|dkr�|S|j||d|dtdt
dt�}|j}q�W|}|j|j}q+Pq+W|S(sParse into a hierarchy of contexts. Contexts are connected
    through the parent variable.

    :param cli: command definition
    :param prog_name: the program that is running
    :param args: full list of args
    :return: the final context/command parsed
    tresilient_parsingtparenttallow_extra_argstallow_interspersed_argsN(tmake_contexttTruetprotected_argstargst
isinstancetcommandRtchaintresolve_commandtNonetFalse(tcliRR'tctxtcmd_nametcmdtsub_ctx((s4/tmp/pip-install-sTXtzD/click/click/_bashcomplete.pytresolve_ctxls6				
cCs|o|d dkS(s�
    :param param_str: param_str to check
    :return: whether or not this is the start of an option declaration
        (i.e. starts "-" or "--")
    iR((t	param_str((s4/tmp/pip-install-sTXtzD/click/click/_bashcomplete.pytstart_of_option�scCs�t|t�stS|jr tSd}xkttg|D]}|tkr6|^q6��D]8\}}|d|jkr{Pnt	|�rX|}qXqXW|r�||j
kr�tStS(sU
    :param all_args: the full original list of args supplied
    :param cmd_param: the current command paramter
    :return: whether or not the last option declaration (i.e. starts
        "-" or "--") is incomplete and corresponds to this cmd_param. In
        other words whether this cmd_param option can still accept
        values
    iN(R(RR-tis_flagR,t	enumeratetreversedt	WORDBREAKtnargsR5toptsR%(tall_argst	cmd_paramtlast_optiontargtindextarg_str((s4/tmp/pip-install-sTXtzD/click/click/_bashcomplete.pytis_incomplete_option�s		8
cCs�t|t�stS||j}|dkr0tS|jdkrCtSt|tj�r}|jdkr}t	|�|jkr}tStS(s`
    :param current_params: the current params and values for this
        argument as already entered
    :param cmd_param: the current command parameter
    :return: whether or not the last argument is incomplete and
        corresponds to this cmd_param. In other words whether or not the
        this cmd_param argument can still accept values
    i����iN(
R(RR-tnameR,R%R:RtIterabletlen(tcurrent_paramsR=tcurrent_param_values((s4/tmp/pip-install-sTXtzD/click/click/_bashcomplete.pytis_incomplete_argument�s	
cCs�g}t|jt�rUg|jjD]'}t|�j|�r%|df^q%}nd|jdk	r�|jd|d|d|�}g|D]'}t|t�r�|n	|df^q�}n|S(s
    :param ctx: context associated with the parsed command
    :param args: full list of args
    :param incomplete: the incomplete text to autocomplete
    :param cmd_param: command definition
    :return: all the possible user-specified completions for the param
    R/R't
incompleteN(	R(ttypeRtchoiceststrt
startswithR,tautocompletionttuple(R/R'RIR=tresultstctdynamic_completions((s4/tmp/pip-install-sTXtzD/click/click/_bashcomplete.pytget_user_autocompletions�s=	7ccsYxR|jj|�D]>}|j|�r|jj||�}|jsQ|VqQqqWdS(s�
    :param ctx: context associated with the parsed command
    :starts_with: string that visible commands must start with.
    :return: all visible (not hidden) commands that start with starts_with.
    N(R)t
list_commandsRMtget_commandthidden(R/tstarts_withRQR)((s4/tmp/pip-install-sTXtzD/click/click/_bashcomplete.pyt"get_visible_commands_starting_with�s
	cCs�t|jt�rM|jgt||�D]}|j|j�f^q(�nx�|jdk	r�|j}t|jt�rP|jj	rPgt||�D]}|j|j
kr�|^q�}|jg|D]}|j|j�f^q��qPqPWdS(N(R(R)RtextendRXRCtget_short_help_strR!R,R*R&(R/RItcompletions_outRQtremaining_commands((s4/tmp/pip-install-sTXtzD/click/click/_bashcomplete.pytadd_subcommand_completions�s2	c
	Cs�tj|�}t|||�}|dkr1gSd|k}t|�r�t|kr�|jt�}|j|d�|d}n|tkr�d}ng}|rWt|�rWx�|jj	D]�}	t
|	t�r�|	jr�g|	j
|	jD]!}
|
|ks|	jr�|
^q�}|jg|D]$}|j|�r!||	jf^q!�q�q�W|Sx6|jj	D](}	t||	�rdt||||	�SqdWx9|jj	D]+}	t|j	|	�r�t||||	�Sq�Wt|||�t|�S(s�
    :param cli: command definition
    :param prog_name: the program that is running
    :param args: full list of args
    :param incomplete: the incomplete text to autocomplete
    :return: all the possible completions for the incomplete
    s--iiRN(tcopytdeepcopyR3R,R5R9t	partitiontappendR)tparamsR(RRVR;tsecondary_optstmultipleRYRMthelpRBRSRHR]tsorted(
R.RR'RIR<R/thas_double_dashtpartition_incompletetcompletionstparamt	param_optt
param_optsto((s4/tmp/pip-install-sTXtzD/click/click/_bashcomplete.pytget_choicess:
	!9cCs�ttjd�}ttjd�}|d|!}y||}Wntk
rZd}nXxRt||||�D];}t|d�|rqt|dr�|dnd�qqqqWtS(Nt
COMP_WORDSt
COMP_CWORDiRiR
(Rtostenvirontintt
IndexErrorRnRR%(R.Rtinclude_descriptionstcwordstcwordR'RItitem((s4/tmp/pip-install-sTXtzD/click/click/_bashcomplete.pytdo_completeEs


%cCs�ttjd�}tjd}|d}x\t||||�D]E}|drwtdjd|dd|d��q@t|d�q@WtS(NRoRpis{arg}	{desc}R?itdesc(RRqRrRnRRR%(R.RRvRIR'Rx((s4/tmp/pip-install-sTXtzD/click/click/_bashcomplete.pytdo_complete_fishYs


'cCs�d|kr'|jdd�\}}n|}d}|dkrYtt|||��tS|dkr�|dkr~t||�S|ddhkr�t|||dk�SntS(NR
iRtsourcetcompleteR
R	(tsplitRRR%R{RyR-(R.RRtcomplete_instrR)R((s4/tmp/pip-install-sTXtzD/click/click/_bashcomplete.pytbashcompletegs
(#R^RqtretcoreRRRtparserRttypesRtutilsRtcollectionsRtImportErrorR9RtCOMPLETION_SCRIPT_ZSHtCOMPLETION_SCRIPT_FISHRtcompileRRR3R5RBRHRSRXR]RnRyR{R�(((s4/tmp/pip-install-sTXtzD/click/click/_bashcomplete.pyt<module>sB
#
	
	+						
		5		

https://t.me/AnonymousX5 - 2025