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

Method _update_core_context

invoke/program.py:731–740  ·  view source on GitHub ↗
(
        self, context: ParserContext, new_args: Dict[str, Any]
    )

Source from the content-addressed store, hash-verified

729 raise Exit("Can't find any collection named {!r}!".format(e.name))
730
731 def _update_core_context(
732 self, context: ParserContext, new_args: Dict[str, Any]
733 ) -> None:
734 # Update core context w/ core_via_task args, if and only if the
735 # via-task version of the arg was truly given a value.
736 # TODO: push this into an Argument-aware Lexicon subclass and
737 # .update()?
738 for key, arg in new_args.items():
739 if arg.got_value:
740 context.args[key]._value = arg._value
741
742 def _make_parser(self) -> Parser:
743 return Parser(

Callers 1

parse_tasksMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected