MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / command_exists

Method command_exists

tests/utils/api_client.py:362–365  ·  view source on GitHub ↗

Check if a command exists in the API.

(self, name: str)

Source from the content-addressed store, hash-verified

360 return result.get("commands", [])
361
362 def command_exists(self, name: str) -> bool:
363 """Check if a command exists in the API."""
364 commands = self.get_available_commands()
365 return any(cmd.get("name") == name for cmd in commands)
366
367 def set_operation_mode(self, mode: str) -> None:
368 """

Callers 15

_licensing_availableFunction · 0.80
_trial_availableFunction · 0.80
test_ble_driver_statusFunction · 0.80
test_mdf4_export_statusFunction · 0.80
_licensing_availableFunction · 0.80
test_trial_tier_is_trialFunction · 0.80
_skip_if_missingFunction · 0.80

Calls 2

getMethod · 0.45

Tested by 15

_licensing_availableFunction · 0.64
_trial_availableFunction · 0.64
test_ble_driver_statusFunction · 0.64
test_mdf4_export_statusFunction · 0.64
_licensing_availableFunction · 0.64
test_trial_tier_is_trialFunction · 0.64
_skip_if_missingFunction · 0.64