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

Method initial_context

invoke/program.py:659–671  ·  view source on GitHub ↗

The initial parser context, aka core program flags. The specific arguments contained therein will differ depending on whether a bundled namespace was specified in `.__init__`. .. versionadded:: 1.0

(self)

Source from the content-addressed store, hash-verified

657
658 @property
659 def initial_context(self) -> ParserContext:
660 """
661 The initial parser context, aka core program flags.
662
663 The specific arguments contained therein will differ depending on
664 whether a bundled namespace was specified in `.__init__`.
665
666 .. versionadded:: 1.0
667 """
668 args = self.core_args()
669 if self.namespace is None:
670 args += self.task_args()
671 return ParserContext(args=args)
672
673 def print_version(self) -> None:
674 print("{} {}".format(self.name, self.version or "unknown"))

Callers

nothing calls this directly

Calls 3

core_argsMethod · 0.95
task_argsMethod · 0.95
ParserContextClass · 0.85

Tested by

no test coverage detected