MCPcopy
hub / github.com/celery/celery / _say_remote_command_reply

Function _say_remote_command_reply

celery/bin/control.py:16–23  ·  view source on GitHub ↗
(ctx, replies, show_reply=False)

Source from the content-addressed store, hash-verified

14
15
16def _say_remote_command_reply(ctx, replies, show_reply=False):
17 node = next(iter(replies)) # <-- take first.
18 reply = replies[node]
19 node = ctx.obj.style(f'{node}: ', fg='cyan', bold=True)
20 status, preply = ctx.obj.pretty(reply)
21 ctx.obj.say_chat('->', f'{node}{status}',
22 text.indent(preply, 4) if show_reply else '',
23 show_body=show_reply)
24
25
26def _consume_arguments(meta, method, args):

Callers

nothing calls this directly

Calls 3

styleMethod · 0.80
prettyMethod · 0.80
say_chatMethod · 0.80

Tested by

no test coverage detected