| Server IP : 54.37.205.81 / Your IP : 216.73.216.76 Web Server : nginx/1.22.1 System : Linux vps-249481fa 6.1.0-50-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.176-1 (2026-07-02) x86_64 User : debian ( 1000) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/argcomplete/__pycache__/ |
Upload File : |
�
U1�a� � �X � d dl mZ n# e$ r d dlmZ Y nw xY wdZdZdZeeed�Zd
d �ZdS )� ��quotea�
# Run something, muting output or redirecting it to the debug stream
# depending on the value of _ARC_DEBUG.
# If ARGCOMPLETE_USE_TEMPFILES is set, use tempfiles for IPC.
__python_argcomplete_run() {
if [[ -z "${ARGCOMPLETE_USE_TEMPFILES-}" ]]; then
__python_argcomplete_run_inner "$@"
return
fi
local tmpfile="$(mktemp)"
_ARGCOMPLETE_STDOUT_FILENAME="$tmpfile" __python_argcomplete_run_inner "$@"
local code=$?
cat "$tmpfile"
rm "$tmpfile"
return $code
}
__python_argcomplete_run_inner() {
if [[ -z "${_ARC_DEBUG-}" ]]; then
"$@" 8>&1 9>&2 1>/dev/null 2>&1
else
"$@" 8>&1 9>&2 1>&9 2>&1
fi
}
_python_argcomplete%(function_suffix)s() {
local IFS=$'\013'
local SUPPRESS_SPACE=0
if compopt +o nospace 2> /dev/null; then
SUPPRESS_SPACE=1
fi
COMPREPLY=( $(IFS="$IFS" \
COMP_LINE="$COMP_LINE" \
COMP_POINT="$COMP_POINT" \
COMP_TYPE="$COMP_TYPE" \
_ARGCOMPLETE_COMP_WORDBREAKS="$COMP_WORDBREAKS" \
_ARGCOMPLETE=1 \
_ARGCOMPLETE_SUPPRESS_SPACE=$SUPPRESS_SPACE \
__python_argcomplete_run "%(argcomplete_script)s") )
if [[ $? != 0 ]]; then
unset COMPREPLY
elif [[ $SUPPRESS_SPACE == 1 ]] && [[ "${COMPREPLY-}" =~ [=/:]$ ]]; then
compopt -o nospace
fi
}
complete %(complete_opts)s -F _python_argcomplete%(function_suffix)s %(executables)s
zVcomplete "%(executable)s" 'p@*@`python-argcomplete-tcsh "%(argcomplete_script)s"`@' ;
a5
function __fish_%(function_name)s_complete
set -x _ARGCOMPLETE 1
set -x _ARGCOMPLETE_DFS \t
set -x _ARGCOMPLETE_IFS \n
set -x _ARGCOMPLETE_SUPPRESS_SPACE 1
set -x _ARGCOMPLETE_SHELL fish
set -x COMP_LINE (commandline -p)
set -x COMP_POINT (string length (commandline -cp))
set -x COMP_TYPE
if set -q _ARC_DEBUG
%(argcomplete_script)s 8>&1 9>&2 1>&9 2>&1
else
%(argcomplete_script)s 8>&1 9>&2 1>/dev/null 2>&1
end
end
complete %(completion_arg)s %(executable)s -f -a '(__fish_%(function_name)s_complete)'
)�bash�tcsh�fishTr Nc � � |�|rdnd}nd� |� � }|dk rKd� | D � � }d� |� � }|}|rd|z } nd}d } t t |||| �
� � z }
n�|dk rHd }
| D ]B}|p|}d|v rd
nd}|� dd� � }
|
t t ||||
�� � z z
}
�Cn=d }
| D ]8}|}|s|}|
t
� |d � � t ||�� � z z
}
�9|
S )a�
Provide the shell code required to register a python executable for use with the argcomplete module.
:param list(str) executables: Executables to be completed (when invoked exactly with this name)
:param bool use_defaults: Whether to fallback to readline's default completion when no matches are generated.
:param str shell: Name of the shell to output code for (bash or tcsh)
:param complete_arguments: Arguments to call complete with
:type complete_arguments: list(str) or None
:param argcomplete_script: Script to call complete with, if not the executable to complete.
If supplied, will be used to complete *all* passed executables.
:type argcomplete_script: str or None
Nz$-o nospace -o default -o bashdefaultz-o nospace -o bashdefault� r c �, � g | ]}t |� � ��S � r )�.0�is �?/usr/lib/python3/dist-packages/argcomplete/shell_integration.py�
<listcomp>zshellcode.<locals>.<listcomp>f s � �<�<�<�1�e�A�h�h�<�<�<� �_z$1� )�
complete_opts�executables�argcomplete_script�function_suffixr �/z--pathz --command)�
executabler �completion_arg�
function_name)r r )�join�bashcode�dict�replace�fishcode�shell_codes�get)r �use_defaults�shell�complete_argumentsr �complete_options�quoted_executables�executables_list�scriptr �coder r r s r � shellcoder* R s� � � �!�EQ�r�A�A�Wr����8�8�$6�7�7������<�<��<�<�<���8�8�$6�7�7��#��� !�!�F�l�O�O��F� �O��$�-=�K[�28�/�[� [� [� [��� �&�����%� `� `�J�'�5�:�F�),�
�):�):�X�X��N�&�.�.�s�C�8�8�M��H�t�z�f�3A�Q^� `� `� `� `�
`�D�D� `� ��%� h� h�J�'�F��
$�#���K�O�O�E�2�.�.���`f�1g�1g�1g�g�g�D�D��Kr )Tr NN) �shlexr �ImportError�pipesr �tcshcoder r r* r r r �<module>r/ s� ������������ � � �������������.��`����&