MCPcopy Index your code
hub / github.com/celery/celery / _verify_command_name

Function _verify_command_name

celery/bin/control.py:59–66  ·  view source on GitHub ↗
(type_: _RemoteControlType, command: str)

Source from the content-addressed store, hash-verified

57
58
59def _verify_command_name(type_: _RemoteControlType, command: str) -> None:
60 choices = _get_commands_of_type(type_)
61
62 if command not in choices:
63 command_listing = ", ".join(choices)
64 raise click.UsageError(
65 message=f'Command {command} not recognized. Available {type_} commands: {command_listing}',
66 )
67
68
69def _list_option(type_: _RemoteControlType):

Callers 2

inspectFunction · 0.85
controlFunction · 0.85

Calls 2

_get_commands_of_typeFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…