MCPcopy Index your code
hub / github.com/pyinvoke/invoke / make_context

Method make_context

invoke/tasks.py:431–443  ·  view source on GitHub ↗

Generate a `.Context` appropriate for this call, with given config. .. versionadded:: 1.0 .. versionchanged:: 3.0 Added the ``core_parse_result`` parameter.

(
        self,
        config: "Config",
        core_parse_result: "ParseResult",
    )

Source from the content-addressed store, hash-verified

429 return True
430
431 def make_context(
432 self,
433 config: "Config",
434 core_parse_result: "ParseResult",
435 ) -> Context:
436 """
437 Generate a `.Context` appropriate for this call, with given config.
438
439 .. versionadded:: 1.0
440 .. versionchanged:: 3.0
441 Added the ``core_parse_result`` parameter.
442 """
443 return Context(config=config, remainder=core_parse_result.remainder)
444
445 def clone_data(self) -> Dict[str, Any]:
446 """

Calls 1

ContextClass · 0.85

Tested by

no test coverage detected