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

Method __init__

invoke/context.py:59–80  ·  view source on GitHub ↗

:param config: `.Config` object to use as the base configuration. Defaults to an anonymous/default `.Config` instance. :param remainder: The invoking program's :ref:`parser remainder ` value, if any was obtained.

(
        self,
        config: Optional[Config] = None,
        remainder: str = "",
    )

Source from the content-addressed store, hash-verified

57 remainder: str
58
59 def __init__(
60 self,
61 config: Optional[Config] = None,
62 remainder: str = "",
63 ) -> None:
64 """
65 :param config:
66 `.Config` object to use as the base configuration.
67
68 Defaults to an anonymous/default `.Config` instance.
69
70 :param remainder:
71 The invoking program&#x27;s :ref:`parser remainder <remainder>` value,
72 if any was obtained.
73 """
74 config = config if config is not None else Config()
75 self._set(
76 _config=config,
77 command_prefixes=[],
78 command_cwds=[],
79 remainder=remainder,
80 )
81
82 @property
83 def config(self) -> Config:

Callers 1

__init__Method · 0.45

Calls 2

ConfigClass · 0.85
_setMethod · 0.80

Tested by

no test coverage detected