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

Method configure

invoke/collection.py:562–579  ·  view source on GitHub ↗

(Recursively) merge ``options`` into the current `.configuration`. Options configured this way will be available to all tasks. It is recommended to use unique keys to avoid potential clashes with other config options For example, if you were configuring a S

(self, options: Dict[str, Any])

Source from the content-addressed store, hash-verified

560 return self.task_with_config(taskpath)[1]
561
562 def configure(self, options: Dict[str, Any]) -> None:
563 """
564 (Recursively) merge ``options`` into the current `.configuration`.
565
566 Options configured this way will be available to all tasks. It is
567 recommended to use unique keys to avoid potential clashes with other
568 config options
569
570 For example, if you were configuring a Sphinx docs build target
571 directory, it's better to use a key like ``'sphinx.target'`` than
572 simply ``'target'``.
573
574 :param options: An object implementing the dictionary protocol.
575 :returns: ``None``.
576
577 .. versionadded:: 1.0
578 """
579 merge_dicts(self._configuration, options)
580
581 def serialized(self) -> Dict[str, Any]:
582 """

Calls 1

merge_dictsFunction · 0.85

Tested by

no test coverage detected