MCPcopy Create free account
hub / github.com/Drakkar-Software/OctoBot / _disable_interface_from_param

Function _disable_interface_from_param

octobot/cli.py:98–103  ·  view source on GitHub ↗
(interface_identifier, param_value, logger)

Source from the content-addressed store, hash-verified

96
97
98def _disable_interface_from_param(interface_identifier, param_value, logger):
99 if param_value:
100 if service_api.disable_interfaces(interface_identifier) == 0:
101 logger.warning("No " + interface_identifier + " interface to disable")
102 else:
103 logger.info(interface_identifier.capitalize() + " interface disabled")
104
105
106def _set_user_root_from_cli(user_folder: str) -> None:

Callers 1

start_octobotFunction · 0.85

Calls 2

warningMethod · 0.80
infoMethod · 0.45

Tested by

no test coverage detected