MCPcopy Index your code
hub / github.com/cirosantilli/linux-kernel-module-cheat / __call__

Method __call__

cli_function.py:130–137  ·  view source on GitHub ↗

Python version of the function call. Not called by cli() indirectly, so can be overridden to distinguish between Python and CLI calls. :type arguments: Dict

(self, **kwargs)

Source from the content-addressed store, hash-verified

128 * CLI + Python for single functions was wontfixed: https://github.com/pallets/click/issues/40
129 '''
130 def __call__(self, **kwargs):
131 '''
132 Python version of the function call. Not called by cli() indirectly,
133 so can be overridden to distinguish between Python and CLI calls.
134
135 :type arguments: Dict
136 '''
137 return self._do_main(kwargs)
138
139 def _do_main(self, kwargs):
140 return self.main(**self._get_args(kwargs))

Callers

nothing calls this directly

Calls 1

_do_mainMethod · 0.95

Tested by

no test coverage detected