/usr/local/lib/python3.6/site-packages/click/__pycache__
NameSizeModeActions
core.cpython-36.pyc879320644editdlrm
decorators.cpython-36.pyc143500644editdlrm
exceptions.cpython-36.pyc100380644editdlrm
formatting.cpython-36.pyc92390644editdlrm
globals.cpython-36.pyc23600644editdlrm
parser.cpython-36.pyc134390644editdlrm
shell_completion.cpython-36.pyc166130644editdlrm
termui.cpython-36.pyc262610644editdlrm
testing.cpython-36.pyc146710644editdlrm
types.cpython-36.pyc329570644editdlrm
utils.cpython-36.pyc177250644editdlrm
_compat.cpython-36.pyc156730644editdlrm
_termui_impl.cpython-36.pyc156500644editdlrm
_textwrap.cpython-36.pyc14650644editdlrm
_unicodefun.cpython-36.pyc22950644editdlrm
_winconsole.cpython-36.pyc76780644editdlrm
__init__.cpython-36.pyc26480644editdlrm
Edit: /usr/local/lib/python3.6/site-packages/click/__pycache__/globals.cpython-36.pyc (2360B)
3 _TBg@sddlZddlmZejr.ddlZddlmZeZ ej ddddd d Z ej de ej ddd d Z de ej ddd d Z dddddZddddZdej e ej e dddZdS)N)local)ContextFzte.Literal[False]r)silentreturncCsdS)N)rrr./tmp/pip-build-0s3hx122/click/click/globals.pyget_current_context sr .cCsdS)Nr)rrrrr scCsLytjdtjdSttfk rF}z|s6td|WYdd}~XnXdS)aReturns 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`. rrz!There is no active click context.N)tcast_localstackAttributeError IndexError RuntimeError)rerrrr s )ctxrcCstjjdgj|dS)z*Pushes a new context to the current stack.rN)r __dict__ setdefaultappend)rrrr push_context-sr)rcCstjjdS)z%Removes the top level from the stack.N)r rpoprrrr pop_context2sr)colorrcCs(|dk r |Stdd}|dk r$|jSdS)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. NT)r)r r)rrrrrresolve_color_default7s  r)F).)F)N)Ztypingr threadingrZ TYPE_CHECKINGZtyping_extensionstecorerr Zoverloadr boolOptionalrrrrrrrs