MCPcopy
hub / github.com/pallets/click / _make_sub_context

Method _make_sub_context

src/click/core.py:837–843  ·  view source on GitHub ↗

Create a new context of the same type as this context, but for a new command. :meta private:

(self, command: Command)

Source from the content-addressed store, hash-verified

835 return self.command.get_help(self)
836
837 def _make_sub_context(self, command: Command) -> Context:
838 """Create a new context of the same type as this context, but
839 for a new command.
840
841 :meta private:
842 """
843 return type(self)(command, info_name=command.name, parent=self)
844
845 @t.overload
846 def invoke(

Callers 2

invokeMethod · 0.95
to_info_dictMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected