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

Method load_runtime

invoke/config.py:768–784  ·  view source on GitHub ↗

Load a runtime-level config file, if one was specified. When the CLI framework creates a `Config`, it sets ``_runtime_path``, which is a full path to the requested config file. This method attempts to load that file. :param bool merge: Whether t

(self, merge: bool = True)

Source from the content-addressed store, hash-verified

766 self._set(_runtime_found=None)
767
768 def load_runtime(self, merge: bool = True) -> None:
769 """
770 Load a runtime-level config file, if one was specified.
771
772 When the CLI framework creates a `Config`, it sets ``_runtime_path``,
773 which is a full path to the requested config file. This method attempts
774 to load that file.
775
776 :param bool merge:
777 Whether to merge the loaded data into the central config. Default:
778 ``True``.
779
780 :returns: ``None``.
781
782 .. versionadded:: 1.0
783 """
784 self._load_file(prefix="runtime", absolute=True, merge=merge)
785
786 def load_shell_env(self) -> None:
787 """

Calls 1

_load_fileMethod · 0.95

Tested by

no test coverage detected