MCPcopy Index your code
hub / github.com/python-cmd2/cmd2 / __init__

Method __init__

tests/test_cmd2.py:289–291  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

287
288class OnChangeHookApp(cmd2.Cmd):
289 def __init__(self, *args, **kwargs) -> None:
290 super().__init__(*args, **kwargs)
291 self.add_settable(utils.Settable("quiet", bool, "my description", self, onchange_cb=self._onchange_quiet))
292
293 def _onchange_quiet(self, name, old, new) -> None:
294 """Runs when quiet is changed via set command"""

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45
add_settableMethod · 0.45

Tested by

no test coverage detected