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

Method load_collection

invoke/config.py:811–826  ·  view source on GitHub ↗

Update collection-driven config data. `.load_collection` is intended for use by the core task execution machinery, which is responsible for obtaining collection-driven data. See :ref:`collection-configuration` for details. .. versionadded:: 1.0

(
        self, data: Dict[str, Any], merge: bool = True
    )

Source from the content-addressed store, hash-verified

809 self.merge()
810
811 def load_collection(
812 self, data: Dict[str, Any], merge: bool = True
813 ) -> None:
814 """
815 Update collection-driven config data.
816
817 `.load_collection` is intended for use by the core task execution
818 machinery, which is responsible for obtaining collection-driven data.
819 See :ref:`collection-configuration` for details.
820
821 .. versionadded:: 1.0
822 """
823 debug("Loading collection configuration")
824 self._set(_collection=data)
825 if merge:
826 self.merge()
827
828 def set_project_location(self, path: Union[PathLike, str, None]) -> None:
829 """

Calls 2

mergeMethod · 0.95
_setMethod · 0.80

Tested by

no test coverage detected