MCPcopy Create free account
hub / github.com/commitizen-tools/commitizen / set_key

Method set_key

commitizen/config/base_config.py:42–47  ·  view source on GitHub ↗

Set or update a key in the config file. Currently, only strings are supported for the parameter key.

(self, key: str, value: object)

Source from the content-addressed store, hash-verified

40 self._path = Path(path)
41
42 def set_key(self, key: str, value: object) -> Self:
43 """Set or update a key in the config file.
44
45 Currently, only strings are supported for the parameter key.
46 """
47 raise NotImplementedError()
48
49 def update(self, data: Settings) -> None:
50 self._settings.update(data)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected