`.brokers.cli`: module type and todo for `--pdb` flag to NOT src from sub-cmd

brokers_refinery
Tyler Goodlet 2025-02-13 12:29:43 -05:00
parent 8b61b4e79b
commit 30483c3218
1 changed files with 6 additions and 2 deletions

View File

@ -471,11 +471,15 @@ def search(
'''
# global opts
brokermods = list(config['brokermods'].values())
brokermods: list[ModuleType] = list(config['brokermods'].values())
# TODO: this is coming from the `search --pdb` NOT from
# the `piker --pdb` XD ..
# -[ ] pull from the parent click ctx's values..dumdum
# assert pdb
# define tractor entrypoint
async def main(func):
async with maybe_open_pikerd(
loglevel=config['loglevel'],
debug_mode=pdb,