Linux ams-business-5.hostwindsdns.com 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
LiteSpeed
Server IP : 23.254.231.17 & Your IP : 216.73.217.37
Domains :
Cant Read [ /etc/named.conf ]
User : uxvsuhne
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
local /
lib /
python3.6 /
site-packages /
click /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2024-02-10 01:43
__init__.py
3.17
KB
-rw-r--r--
2024-02-10 01:43
_compat.py
18.37
KB
-rw-r--r--
2024-02-10 01:43
_termui_impl.py
22.87
KB
-rw-r--r--
2024-02-10 01:43
_textwrap.py
1.32
KB
-rw-r--r--
2024-02-10 01:43
_unicodefun.py
3.13
KB
-rw-r--r--
2024-02-10 01:43
_winconsole.py
7.68
KB
-rw-r--r--
2024-02-10 01:43
core.py
108.73
KB
-rw-r--r--
2024-02-10 01:43
decorators.py
14.52
KB
-rw-r--r--
2024-02-10 01:43
exceptions.py
8.95
KB
-rw-r--r--
2024-02-10 01:43
formatting.py
9.48
KB
-rw-r--r--
2024-02-10 01:43
globals.py
1.93
KB
-rw-r--r--
2024-02-10 01:43
parser.py
18.6
KB
-rw-r--r--
2024-02-10 01:43
py.typed
0
B
-rw-r--r--
2024-02-10 01:43
shell_completion.py
17.46
KB
-rw-r--r--
2024-02-10 01:43
termui.py
28.13
KB
-rw-r--r--
2024-02-10 01:43
testing.py
15.64
KB
-rw-r--r--
2024-02-10 01:43
types.py
34.55
KB
-rw-r--r--
2024-02-10 01:43
utils.py
18.31
KB
-rw-r--r--
2024-02-10 01:43
Save
Rename
import typing import typing as t from threading import local if t.TYPE_CHECKING: import typing_extensions as te from .core import Context _local = local() @typing.overload def get_current_context(silent: "te.Literal[False]" = False) -> "Context": ... @typing.overload def get_current_context(silent: bool = ...) -> t.Optional["Context"]: ... def get_current_context(silent: bool = False) -> t.Optional["Context"]: """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`. """ try: return t.cast("Context", _local.stack[-1]) except (AttributeError, IndexError): if not silent: raise RuntimeError("There is no active click context.") return None def push_context(ctx: "Context") -> None: """Pushes a new context to the current stack.""" _local.__dict__.setdefault("stack", []).append(ctx) def pop_context() -> None: """Removes the top level from the stack.""" _local.stack.pop() def resolve_color_default(color: t.Optional[bool] = None) -> t.Optional[bool]: """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. """ if color is not None: return color ctx = get_current_context(silent=True) if ctx is not None: return ctx.color return None