ok

Mini Shell

Direktori : /opt/imunify360/venv/lib/python3.11/site-packages/click/__pycache__/
Upload File :
Current File : //opt/imunify360/venv/lib/python3.11/site-packages/click/__pycache__/globals.cpython-311.pyc

�

j��f���,�ddlZddlmZejr
ddlZddlmZe��Z	ej
ddd
���Zej
ddedej
d	fd���Zddedej
d	fd
�Zdd�Zdd�Zddej
edej
efd�ZdS)�N)�local�)�ContextF�silent�te.Literal[False]�returnrc��dS�N��rs �m/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib/python3.11/site-packages/click/globals.py�get_current_contextr����C�.c��dSr
rrs r
rrrrc��	tjdtjd��S#tt
f$r}|st
d��|�Yd}~nd}~wwxYwdS)a�Returns the current click context.  This can be used as a way to
    access the current context object from anywhere.  This is a more implicit
    alternative to the :func:`pass_context` decorator.  This function is
    primarily useful for helpers such as :func:`echo` which might be
    interested in changing its behavior based on the current context.

    To push the current context, :meth:`Context.scope` can be used.

    .. versionadded:: 5.0

    :param silent: if set to `True` the return value is `None` if no context
                   is available.  The default behavior is to raise a
                   :exc:`RuntimeError`.
    r���z!There is no active click context.N)�t�cast�_local�stack�AttributeError�
IndexError�RuntimeError)r�es  r
rrs���K��v�i���b�!1�2�2�2���J�'�K�K�K��	K��B�C�C��J�	K�	K�	K�	K�	K�����K�����4s�$'�A�A�A�ctxc�l�tj�dg���|��dS)z*Pushes a new context to the current stack.rN)r�__dict__�
setdefault�append)rs r
�push_contextr!-s.��
�O���w��+�+�2�2�3�7�7�7�7�7rc�B�tj���dS)z%Removes the top level from the stack.N)rr�poprrr
�pop_contextr$2s��
�L�������r�colorc�@�|�|Std���}|�|jSdS)z�Internal helper to get the default value of the color flag.  If a
    value is passed it's returned unchanged, otherwise it's looked up from
    the current context.
    NTr)rr%)r%rs  r
�resolve_color_defaultr'7s1��

����
�T�
*�
*�
*�C�
���y���4r)F)rrrr).)rrrN)rNr
)�typingr�	threadingr�
TYPE_CHECKING�typing_extensions�te�corerr�overloadr�bool�Optionalr!r$r'rrr
�<module>r1sN�������������?��"�"�"�"�������	��������������������q�z�)�/D�������������I�1F�����08�8�8�8�
����

�
���D�!1�
�Q�Z��=M�
�
�
�
�
�
r

Zerion Mini Shell 1.0