HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/awscli/customizations/configure/__pycache__/get.cpython-310.pyc
o

.&�a��@sRddlZddlZddlmZddlmZddlmZe�e	�Z
Gdd�de�ZdS)�N)�BasicCommand)�six�)�PREDEFINED_SECTION_NAMEScsleZdZdZe�ddd�ZdZe�ddd�Zdddd	d
d�gZ	e
je
jf�fdd
�	Z
dd�Zdd�Z�ZS)�ConfigureGetCommand�get�	configurez_description.rstz2aws configure get varname [--profile profile-name]z
_examples.rst�varnamez)The name of the config value to retrieve.�store�stringT)�name�	help_text�action�
cli_type_name�positional_argcs tt|��|�||_||_dS)N)�superr�__init__�_stream�
_error_stream)�self�session�stream�error_stream��	__class__��E/usr/lib/python3/dist-packages/awscli/customizations/configure/get.pyr%s
zConfigureGetCommand.__init__cCs�|j}d|vr|j��}|�|�}n|�|�}t�d|�t|tj	�r2|j
�|�|j
�d�dSt|t�rA|j
�d|�dSdS)N�.zConfig value retrieved: %s�
rzBvarname (%s) must reference a value, not a section or sub-section.r)r	�_session�get_scoped_configr�_get_dotted_config_value�LOG�debug�
isinstancer�string_typesr�write�dictr)r�args�parsed_globalsr	�config�valuerrr�	_run_main*s$


��zConfigureGetCommand._run_mainc
Cs^|�d�}|�d�}|dkr9|dtvr9|jj}|�d�\}}|�|i��|�}|dur7|d�|i��|�}|S|ddkrN|d}|d}|dd�}	n5|ddks^|d|jjdvrm|d}|d}|dd�}	n|j�d�}|duryd}|d}|dd�}	|jjd�|i��|�}t|	�dkr�z
|�|	d	�}W|Sty�d}Y|Sw|S)
Nrrr�profiles�profile���default���)	�split�countrr�full_configr�get_config_variable�len�AttributeError)
rr	�parts�num_dotsr5�section�config_namer+�profile_name�	remainingrrrr!FsR

������z,ConfigureGetCommand._get_dotted_config_value)�__name__�
__module__�__qualname__�NAMEr�	FROM_FILE�DESCRIPTION�SYNOPSIS�EXAMPLES�	ARG_TABLE�sys�stdout�stderrrr,r!�
__classcell__rrrrrs ���r)rH�logging�awscli.customizations.commandsr�
awscli.compatr�r�	getLoggerr?r"rrrrr�<module>s