Skip to content
Myr

Merge pull request #291 from jhermann/patch-2

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

s/with_context/pass_context/

authored by Markus Unterwaditzer · committed by Markus Unterwaditzer · parents 2fa23f0, f878b14 · 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 concept that can be used to build very complex141nested applications; see :ref:`complex-guide` for more information.142
410 unmodified lines