From 524ba803e178fdf502ce0cb2cd6b1ca6487c51bc Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 5 Sep 2016 19:07:35 +0800 Subject: [PATCH] artiq_client: add show ccb --- artiq/frontend/artiq_client.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/artiq/frontend/artiq_client.py b/artiq/frontend/artiq_client.py index 28a21ac49..5b5f56b12 100755 --- a/artiq/frontend/artiq_client.py +++ b/artiq/frontend/artiq_client.py @@ -274,6 +274,16 @@ def _show_log(args): _run_subscriber(args.server, port, subscriber) +def _show_ccb(args): + subscriber = Receiver("ccb", [ + lambda d: print(d["service"], + "args:", d["args"], + "kwargs:", d["kwargs"]) + ]) + port = 1067 if args.port is None else args.port + _run_subscriber(args.server, port, subscriber) + + def main(): args = get_argparser().parse_args() action = args.action.replace("-", "_") @@ -282,6 +292,8 @@ def main(): _show_dict(args, "schedule", _show_schedule) elif args.what == "log": _show_log(args) + elif args.what == "ccb": + _show_ccb(args) elif args.what == "devices": _show_dict(args, "devices", _show_devices) elif args.what == "datasets":