⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.144
Server IP:
157.245.143.252
Server:
Linux www 6.11.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 14 13:19:59 UTC 2024 x86_64
Server Software:
nginx/1.26.0
PHP Version:
8.3.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
lib
/
python3
/
dist-packages
/
click
/
__pycache__
/
View File Name :
globals.cpython-312.pyc
Wd F d dl Zd dlmZ ej r d dlZddlmZ e Z ej ddd Zej ddedej d fd Zddedej d fd ZddZddZdd ej e dej e fdZy) N)local )Contextsilentreturnr c y N r s //usr/lib/python3/dist-packages/click/globals.pyget_current_contextr c y r r r s r r r r r c t j dt j d S # t t f$ r}| st d |Y d}~yd}~ww xY w)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)tcast_localstackAttributeError IndexErrorRuntimeError)r es r r r sT Kvvib!122J' KBCJ Ks &) AAAc b t j j dg j | y)z*Pushes a new context to the current stack.r N)r __dict__ setdefaultappend)ctxs r push_contextr - s! OOw+2237r c @ t j j y)z%Removes the top level from the stack.N)r r popr r r pop_contextr# 2 s LLr colorc @ | | S t d }||j S y)zInternal 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 )r r$ )r$ r s r resolve_color_defaultr&