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

Method configuration

invoke/collection.py:544–560  ·  view source on GitHub ↗

Obtain merged configuration values from collection & children. :param taskpath: (Optional) Task name/path, identical to that used for `~.Collection.__getitem__` (e.g. may be dotted for nested tasks, etc.) Used to decide which path to follow in th

(self, taskpath: Optional[str] = None)

Source from the content-addressed store, hash-verified

542 return ret
543
544 def configuration(self, taskpath: Optional[str] = None) -> Dict[str, Any]:
545 """
546 Obtain merged configuration values from collection & children.
547
548 :param taskpath:
549 (Optional) Task name/path, identical to that used for
550 `~.Collection.__getitem__` (e.g. may be dotted for nested tasks,
551 etc.) Used to decide which path to follow in the collection tree
552 when merging config values.
553
554 :returns: A `dict` containing configuration values.
555
556 .. versionadded:: 1.0
557 """
558 if taskpath is None:
559 return copy_dict(self._configuration)
560 return self.task_with_config(taskpath)[1]
561
562 def configure(self, options: Dict[str, Any]) -> None:
563 """

Calls 2

task_with_configMethod · 0.95
copy_dictFunction · 0.85

Tested by

no test coverage detected