HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/web/hyperflight/apps/inxpress/.venv/Lib/site-packages/dotenv/__pycache__/cli.cpython-311.pyc
�

��i%����ddlZddlZddlZddlZddlmZddlmZmZm	Z	m
Z
mZmZej
dkrddlmZ	ddlZn5#e$r-ej�d��ejd��YnwxYwddlmZmZmZdd	lmZd
eefd�Zej��ejdd
e��ejd���d���ejdddej gd���d���ejdddej!d���ej"e���ej#dej$dededed
df
d �������������Z%ed!ej&d
e
eefd"���Z'e%�(d#�$��ej#ejd%d&d'ej gd(���d)���dej$d&ed
dfd*�������Z)e%�(d+�$��ej#ej*d,d�-��ej*d.d�-��dej$d,ed.ed
dfd/���������Z+e%�(��ej#ej*d,d�-��dej$d,ed
dfd0�������Z,e%�(��ej#ej*d,d�-��dej$d,ed
dfd1�������Z-e%�(d2di�3��ej#ejd4dd5�6��ej*d7d8ej.�9��dej$d:e/d7eed
dfd;���������Z0d<eed=e	eefd
dfd>�Z1dS)?�N)�contextmanager)�IO�Any�Dict�Iterator�List�Optional�win32)�PopenzkIt seems python-dotenv is not installed with cli option. 
Run pip install "python-dotenv[cli]" to fix this.�)�
dotenv_values�set_key�	unset_key)�__version__�returnc��	tj��}n#t$rYdSwxYwtj�|d��}|S)zZ
    Return a path for the ${pwd}/.env file.

    If pwd does not exist, return None.
    Nz.env)�os�getcwd�FileNotFoundError�path�join)�cwdrs  �FD:\web\hyperflight\apps\inxpress\.venv\Lib\site-packages\dotenv/cli.py�
enumerate_envrsP����i�k�k���������t�t�����
�7�<�<��V�$�$�D��Ks��
$�$z-fz--fileT)�	file_okayzNLocation of the .env file, defaults to .env file in current working directory.)�default�type�helpz-qz--quote�always)r�never�autozbWhether to quote or not the variable values. Default mode is always. This does not affect parsing.z-ez--exportFz;Whether to write the dot file as an executable bash script.)�version�ctx�file�quote�exportc��|||d�|_dS)zAThis script is used to set, get or unset values from a .env file.)�QUOTE�EXPORT�FILEN)�obj)r#r$r%r&s    r�clir,&s��4���>�>�C�G�G�G�rc#�K�	t|��5}|V�ddd��dS#1swxYwYdS#t$r=}td|��tj���tjd��Yd}~dSd}~wwxYw)z~
    Open a file and yield the corresponding (decoded) stream.

    Exits with error code 2 if the file cannot be opened.
    NzError opening env file: )r$�)�open�OSError�print�sys�stderr�exit)r�stream�excs   r�stream_filer8Cs������
�$�Z�Z�	�6��L�L�L�	�	�	�	�	�	�	�	�	�	�	�	����	�	�	�	�	�	������
�.��.�.�S�Z�@�@�@�@��������������������s,�2�%�2�)�2�)�2�
A9�2A4�4A9�list)�namez--format�
output_format�simple)r<�json�shellr&zlThe format in which to display the list. Default format is simple, which displays name=value without quotes.c��|jd}t|��5}t|���}ddd��n#1swxYwY|dkr+tjtj|dd�����dS|dkrd	nd
}t|��D]?}||}|�3|dvrtj	|��}tj|�|�d|�����@dS)
z!Display all the stored key/value.r*�r6Nr=r/T)�indent�	sort_keysr&zexport �)r&r>�=)
r+r8r
�click�echor=�dumps�sorted�shlexr%)r#r;r$r6�values�prefix�k�vs        r�list_valuesrNSs7���7�6�?�D�	�T�	�	�.�f��f�-�-�-��.�.�.�.�.�.�.�.�.�.�.����.�.�.�.����	/�
�
�4�:�f�Q�$�?�?�?�@�@�@�@�@�+�x�7�?���R������	/�	/�A��q�	�A��
/� �$7�7�'���A���A��
�f�-�a�-�-�!�-�-�.�.�.��	/�	/�
�:�>�>�set�key)�required�valuec���|jd}|jd}|jd}t|||||��\}}}|rtj|�d|����dSt	jd��dS)zStore the given key/value.r*r(r)rDrN)r+rrErFr3r5)r#rQrSr$r%r&�successs       r�	set_valuerVps����7�6�?�D��G�G��E�
�W�X�
�F�!�$��U�E�6�B�B��G�S�%���
�
�c�#�#�E�#�#�$�$�$�$�$��������r-c��|jd}t|��5}t|���}ddd��n#1swxYwY|�|��}|rt	j|��dSt
jd��dS)z%Retrieve the value for the given key.r*r@Nr)r+r8r
�getrErFr3r5)r#rQr$r6rJ�stored_values      rrXrX�s���
�7�6�?�D�	�T�	�	�.�f��f�-�-�-��.�.�.�.�.�.�.�.�.�.�.����.�.�.�.��:�:�c�?�?�L���
�
�<� � � � � ��������rOc��|jd}|jd}t|||��\}}|rtjd|����dSt	jd��dS)zRemoves the given key.r*r(zSuccessfully removed rN)r+rrErFr3r5)r#rQr$r%rUs     r�unsetr[�sh��
�7�6�?�D��G�G��E��T�3��.�.�L�G�S���
�
�0�3�0�0�1�1�1�1�1��������r-�ignore_unknown_options)�context_settingsz--override/--no-overridezKOverride variables from the environment file with those from the .env file.)rr�commandline���)�nargsr�overridec�b��|jd}tj�|��st	jd|�d�|�����fd�t
|�����D��}|s(t	jd��tj
d��t||��dS)	z/Run command with environment variables present.r*zInvalid value for '-f' "z" does not exist.)r#c�@��i|]\}}|��s|tjv�||��S)N)r�environ)�.0rLrMras   �r�
<dictcomp>zrun.<locals>.<dictcomp>�sP�������Q����'��+,�2�:�*=��	�1���r-zNo command given.rN)r+rr�isfilerE�BadParameterr
�itemsrFr3r5�run_command)r#rar^r$�dotenv_as_dicts `   r�runrl�s�����7�6�?�D�
�7�>�>�$���
�� �@��@�@�@�c�
�
�
�	
�����#�D�)�)�/�/�1�1����N���
�
�&�'�'�'���������^�,�,�,�,�,r-�command�envc�R�tj���}|�|��tjdkrFt
|ddd|���}|���\}}t	j|j	��dStj
|d||���dS)a�Replace the current process with the specified command.

    Replaces the current process with the specified command and the variables from `env`
    added in the current environment variables.

    Parameters
    ----------
    command: List[str]
        The command and it's parameters
    env: Dict
        The additional environment variables

    Returns
    -------
    None
        This function does not return any value. It replaces the current process with the new one.

    r
TrF)�universal_newlines�bufsizer>rn)�argsrnN)rrd�copy�updater3�platformr�communicater5�
returncode�execvpe)rmrn�cmd_env�p�_s     rrjrj�s���*�j�o�o���G��N�N�3����
�|�w��:�
�'�d�A�U�PW�X�X�X���}�}�����1����������
�
�7�1�:�G��9�9�9�9�9�9r-)2r=rrIr3�
contextlibr�typingrrrrrr	ru�
subprocessrrE�ImportErrorr4�writer5�mainr
rrr"r�strr�group�option�Path�Choice�BOOL�version_option�pass_context�Contextr,�PathLiker8rmrN�argumentrVrXr[�UNPROCESSED�boolrlrj�r-r�<module>r�s�������	�	�	�	�����
�
�
�
�%�%�%�%�%�%�:�:�:�:�:�:�:�:�:�:�:�:�:�:�:�:��<�7��!� � � � � � ���L�L�L�L�������J���	<����
�C�H�Q�K�K�K�K�K�����4�3�3�3�3�3�3�3�3�3� � � � � � ��x��}�����
�����
������M�O�O�	���d�	#�	#�	#�	Y��������
��	���1�1�1�	2�	2�	m����������	��	F�������k�*�*�*���?�U�]�?�#�?�c�?�3�?�4�?�?�?���+�*���������0?�
��b�k��h�r�#�w�&7����������&������
������	���;�;�;�	<�	<�
0����/�U�]�/�3�/�4�/�/�/�������/�&���%�����������%�%�%�����$�'�'�'�	�5�=�	�s�	�3�	�4�	�	�	�(�'�&�%�����	�������������%�%�%��U�]��������&�%������������������%�%�%��u�}��3��4����&�%���������7��>��?�?���
�����	V����
���
�R�e�.?�@�@�@�-�U�]�-�d�-��c��-�t�-�-�-�A�@�����@�?�-�& :��c�� :��c�3�h�� :�D� :� :� :� :� :� :s�>�/A0�/A0