https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/awscli/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/awscli/__pycache__/completer.cpython-310.pyc
o

.&�a��@s�ddlZddlZddlZddlZe�e�ZGdd�de�Z	dd�Z
edkr]eej�dkr9ejdZ
eejd	�Zneej�d	krFejdZ
ned
ejd�e�d�ee
e
e��dSdS)�Nc@s\eZdZddd�Zddd�Zdd�Zdd	�Zd
d�Zdd
�Zdd�Z	ddd�Z
ddd�ZdS)�	CompleterNcCs<|dur||_ntj��|_|j��|_|�|jj�|_dS�N)	�driver�awscli�	clidriver�create_clidriver�create_help_command�	main_help�_get_documented_completions�	arg_table�main_options)�selfr�r�2/usr/lib/python3/dist-packages/awscli/completer.py�__init__s
�zCompleter.__init__cCs�|durt|�}|d|���}|d}dd�|D�}dd�|D�}|�|j|�\}}|�||�\}	}
|dur=|�||�S|	durI|�||||�S|�|	|
||�S)Nr���cSsg|]	}|�d�s|�qS��-��
startswith��.0�wrrr�
<listcomp>%�z&Completer.complete.<locals>.<listcomp>cSsg|]	}|�d�r|�qSrrrrrrr&r)�len�split�_get_commandr	�_complete_provider�_complete_command�_complete_subcommand)r
�cmdline�point�args�current_arg�cmd_args�opts�cmd_name�cmd�subcmd_name�subcmdrrr�completeszCompleter.completecCsL||kr|r|�|j�SgS|�d�r|�||�S|dur$|�|j|�SgS�Nr)r
�
command_tabler�_find_possible_options)r
�command_name�command_helpr$r&rrrr3s�
��zCompleter._complete_commandcCs$||kr|�d�r|�|||�SgSr,)rr.)r
r)�subcmd_helpr$r&rrrr @szCompleter._complete_subcommandcCsH|dkrgS|dkr|jj�d�}|dddS|dkr"|jjjSgS)Nz--endpoint-urlz--output�cli�options�output�choicesz	--profile)r�session�get_data�available_profiles)r
�option_name�cli_datarrr�_complete_optionEs
zCompleter._complete_optioncCs<|�d�r|�||�S|dkr|�|jj�S|�|jj|�S)Nr�aws)rr.r
r	r-)r
r$r&rrrrOs
��zCompleter._complete_providercCsD|dur |jdur |D]}||jvr|j|}||��fSqdS)N)NN)r-r)r
r0�command_argsr/�cmd_objrrrrZs

�zCompleter._get_commandcCsTg}|��D]!\}}t|dd�rq|dur|�|�sqt|dd�r"q|�|�q|S)N�
_UNDOCUMENTEDF�positional_arg)�items�getattrr�append)r
�tabler�names�key�commandrrrr
bsz%Completer._get_documented_completionscs�t�|j�}|dur||�|j�7}|D]}||kr(|�d�}||vr(|�|�q|�d���fdd�|D�}t|�dkrJ|d|krJ|�|d�S|S)Nrcsg|]}|���rd|�qS)z--r)r�n��cwrrr~sz4Completer._find_possible_options.<locals>.<listcomp>�r)�copyrr
r�lstrip�removerr;)r
r$r&r1�all_options�option�stripped_opt�
possibilitiesrrIrr.os �

�
z Completer._find_possible_optionsr)�__name__�
__module__�__qualname__rr+rr r;rrr
r.rrrrrs

	



rcCs t��||�}td�|��dS)Nz 
)rr+�print�join)r!r"r5rrrr+�sr+�__main__�rK�zusage: %s <cmdline> <point>)�awscli.clidriverr�sys�loggingrL�	getLoggerrS�LOG�objectrr+r�argvr!�intr"rV�exitrrrr�<module>s"
p

�

https://t.me/RX1948 - 2025