Skip to content
Myr

s/with_context/pass_context/

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Old name of decorator not fixed?

authored by Jürgen Hermann · committed by Jürgen Hermann · parent f5bf284 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/commands.rst+1 added-1 removed
133 unmodified lines
134135The :meth:`Context.invoke` command will automatically invoke the function136in the correct way, so the function will either be called with ``f(ctx,137obj)`` or ``f(obj)`` depending on whether or not it itself is decorated with138:func:`with_context`.138:func:`pass_context`.139140This is a very powerful context that can be used to build very complex141nested applications; see :ref:`complex-guide` for more information.142
410 unmodified lines